Changeset 122981 in git
- Timestamp:
- Jan 30, 2008, 5:10:37 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- 12ea9df042d8c883f3d3c722b2388c0424347a88
- Parents:
- faa7df853a3237b63560a72ed208619df8d26215
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
rfaa7df r122981 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipshell.cc,v 1.17 4 2008-01-30 14:28:16wienand Exp $ */4 /* $Id: ipshell.cc,v 1.175 2008-01-30 16:10:37 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 4371 4371 int ch; 4372 4372 #ifdef HAVE_RINGS 4373 int ringtype = 0;4374 unsigned long ringflaga = 0;4373 unsigned int ringtype = 0; 4374 unsigned long long ringflaga = 0; 4375 4375 unsigned int ringflagb = 0; 4376 4376 #endif … … 4425 4425 && (strcmp(pn->name,"modnat")==0)) 4426 4426 { 4427 long module = 0;4428 if((pn->next!=NULL) && (pn->next->Typ()==INT_CMD))4429 { 4430 module =(unsignedlong) pn->next->Data();4427 unsigned long long module = 1; 4428 while ((pn->next!=NULL) && (pn->next->Typ()==INT_CMD)) 4429 { 4430 module *= (unsigned long long) pn->next->Data(); 4431 4431 pn=pn->next; 4432 4432 } 4433 4433 if ((module < 2)) 4434 4434 { 4435 Werror("Wrong ground ring specification ");4435 Werror("Wrong ground ring specification (modnat)"); 4436 4436 goto rInitError; 4437 4437 }
Note: See TracChangeset
for help on using the changeset viewer.