Changeset 0a78c3 in git


Ignore:
Timestamp:
Jul 9, 2009, 2:11:34 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
Children:
b14053699cd89db8efa9555fbd217a30294502cc
Parents:
7fab0e07488f850047c93418e70535b1a85aacdc
Message:
*hannes: gcc warnings


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

Legend:

Unmodified
Added
Removed
  • kernel/modulop.cc

    r7fab0e r0a78c3  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: modulop.cc,v 1.14 2008-12-08 15:00:43 Singular Exp $ */
     4/* $Id: modulop.cc,v 1.15 2009-07-09 12:11:34 Singular Exp $ */
    55/*
    66* ABSTRACT: numbers modulo p (<=32003)
     
    152152{
    153153#ifndef HAVE_DIV_MOD
    154   return (number)npExpTable[npPminus1M - npLogTable[(long)c]];
     154  return (number)(long)npExpTable[npPminus1M - npLogTable[(long)c]];
    155155#else
    156   long inv=npInvTable[(long)c];
     156  long inv=(long)npInvTable[(long)c];
    157157  if (inv==0)
    158158  {
     
    183183    if (s < 0)
    184184      s += npPminus1M;
    185     return (number)npExpTable[s];
     185    return (number)(long)npExpTable[s];
    186186  }
    187187#else
Note: See TracChangeset for help on using the changeset viewer.