Changeset ee7dcf in git
- Timestamp:
- Nov 17, 2005, 5:50:57 PM (18 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- bcce2ee89fa798c449ace6ea211f4185b6b04abd
- Parents:
- b17a5c26cefea774381518da0aa52b998e0b4075
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longrat.cc
rb17a5c ree7dcf 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat.cc,v 1. 7 2005-08-03 12:51:07 Singular Exp $ */4 /* $Id: longrat.cc,v 1.8 2005-11-17 16:50:57 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: computation with long rational numbers (Hubert Grassmann) … … 188 188 if (a->z._mp_alloc==0) 189 189 Print("!!longrat:n->alloc=0 in %s:%l\n",f,l); 190 if ( mpz_cmp_si(&a->n,(long)1)==0)190 if ((mpz_size1(&a->n) ==1) && (mpz_cmp_si(&a->n,(long)1)==0)) 191 191 { 192 192 Print("!!longrat:integer as rational in %s:%d\n",f,l); … … 970 970 x=aa; 971 971 } 972 else if (x->s==0) 973 nlNormalize(x); 972 974 *u=(number)omAllocBin(rnumber_bin); 973 975 #if defined(LDEBUG) … … 1134 1136 return; 1135 1137 #ifdef LDEBUG 1136 if (!nlTest(x)) return;1138 if (!nlTest(x)) { x->s=1; return; } 1137 1139 #endif 1138 1140 if (x->s==3)
Note: See TracChangeset
for help on using the changeset viewer.