Changeset 3e28dd in git for kernel


Ignore:
Timestamp:
Feb 27, 2010, 3:18:29 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '4188d308699580d975efd0f6cca8dcb41c396f70')
Children:
85edb3a66854fc40ec520e1e8c1cdcd116f3bd06
Parents:
5c2da1a9a9300ca4798263ad7fee001da37cf56d
Message:
gcc warnings - 64bit

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

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r5c2da1 r3e28dd  
    298298    PrintS("//   coeff. ring is : ");
    299299    if (rField_is_Ring_Z(r)) PrintS("Integers\n");
    300     int l = mpz_sizeinbase(r->ringflaga, 10) + 2;
     300    long l = (long)mpz_sizeinbase(r->ringflaga, 10) + 2;
    301301    char* s = (char*) omAlloc(l);
    302302    mpz_get_str(s,10,r->ringflaga);
     
    645645    l+=strlen(r->names[i])+1;
    646646  }
    647   s=(char *)omAlloc(l);
     647  s=(char *)omAlloc((long)l);
    648648  s[0]='\0';
    649649  for (i=0; i<r->N-1; i++)
     
    703703    l+=(strlen(r->parameter[i])+1);
    704704  }
    705   s=(char *)omAlloc(l+MAX_INT_LEN+1);
     705  s=(char *)omAlloc((long)(l+MAX_INT_LEN+1));
    706706  s[0]='\0';
    707707  if (r->ch<0)       sprintf(s,"%d",-r->ch); /* Fp(a) */
     
    734734    l+=strlen(r->parameter[i])+1;
    735735  }
    736   char *s=(char *)omAlloc(l);
     736  char *s=(char *)omAlloc((long)l);
    737737  s[0]='\0';
    738738  for (i=0; i<rPar(r)-1; i++)
Note: See TracChangeset for help on using the changeset viewer.