Changeset 4e8da2 in git for factory


Ignore:
Timestamp:
Dec 9, 1997, 10:05:44 AM (26 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'spielwiese', '82fc009ea2b0098c1a4896c841bb70860976bdfc')
Children:
cd254c63ba05bdde6127f3a110be20c90d58936b
Parents:
08d44735ebc35223aa0667c61546ebf364a608e5
Message:
	* int_poly.cc (comparecoeff): unused argument `acoeff' removed

	* int_poly.cc (coeff): explicit cast to CanonicalForm added
	  (coeff): cosmetic change

	* int_poly.cc: ^M fix.  Was:
Thu 27.11.1997 22:30:00  Ruediger Stobbe  <rstobbe@de.oracle.com>
Factory Win NT Port, see ChangeLog for details


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

Legend:

Unmodified
Added
Removed
  • factory/int_poly.cc

    r08d447 r4e8da2  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_poly.cc,v 1.6 1997-10-10 10:37:01 schmidt Exp $ */
     2/* $Id: int_poly.cc,v 1.7 1997-12-09 09:05:44 schmidt Exp $ */
    33
    44#include <config.h>
     
    66#ifndef NOSTREAMIO
    77#include <string.h>
     8#ifdef WINNT
     9#include <strstrea.h>
     10#else
    811#include <strstream.h>
     12#endif
    913#endif /* NOSTREAMIO */
    1014
     
    135139//}}}
    136140
     141//{{{ CanonicalForm InternalPoly::coeff ( int i )
     142// docu: see CanonicalForm::operator []()
    137143CanonicalForm
    138 InternalPoly::coeff( int i )
     144InternalPoly::coeff ( int i )
    139145{
    140146    termList theCursor = firstTerm;
     
    142148        if ( theCursor->exp == i )
    143149            return theCursor->coeff;
    144         else if ( theCursor->exp > i )
     150        else if ( theCursor->exp < i )
     151            return CanonicalForm( 0 );
     152        else
    145153            theCursor = theCursor->next;
    146         else
    147             theCursor = 0;
    148     }
    149     return 0;
    150 }
     154    }
     155    return CanonicalForm( 0 );
     156}
     157//}}}
    151158
    152159#ifndef NOSTREAMIO
     
    622629
    623630int
    624 InternalPoly::comparecoeff ( InternalCF* acoeff )
     631InternalPoly::comparecoeff ( InternalCF* )
    625632{
    626633    return 1;
Note: See TracChangeset for help on using the changeset viewer.