Changeset 282c8d in git


Ignore:
Timestamp:
Oct 5, 2009, 12:30:21 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
d6f104a22d8ad0e108a38bd7f5f8d96828ca7df0
Parents:
140eba8605f3038a0a5f7dcefdf6131d198a51c8
Message:
*hannes: avoid warnings


git-svn-id: file:///usr/local/Singular/svn/trunk@12156 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r140eba r282c8d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.213 2009-09-24 16:36:12 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.214 2009-10-05 10:30:21 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    513513int iiIsPrime0(unsigned p)  /* brute force !!!! */
    514514{
    515   unsigned i,j;
     515  unsigned i,j=0 /*only to avoid compiler warnings*/;
    516516#ifdef HAVE_FACTORY
    517517  if (p<=32749) // max. small prime in factory
     
    522522    do
    523523    {
    524       if (p==(j=cf_getSmallPrime(i))) return p;
     524      j=cf_getSmallPrime(i);
     525      if (p==j) return p;
    525526      if (p<j) e=i-1;
    526527      else     a=i+1;
Note: See TracChangeset for help on using the changeset viewer.