Changeset 778b36 in git
- Timestamp:
- Jul 4, 2013, 11:21:59 AM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- fff50d9b5c80dd9a6645078ab526d5eb384270df
- Parents:
- 90e49f7869b86be3e49012a3f3091d48b56c09ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/longrat.cc
r90e49f7 r778b36 835 835 number nlDiv (number a, number b, const coeffs r) 836 836 { 837 number u;838 837 if (nlIsZero(b,r)) 839 838 { … … 841 840 return INT_TO_SR(0); 842 841 } 843 u=ALLOC_RNUMBER(); 844 u->s=0; 845 #if defined(LDEBUG) 846 u->debug=123456; 847 #endif 842 number u; 848 843 // ---------- short / short ------------------------------------ 849 844 if (SR_HDL(a) & SR_HDL(b) & SR_INT) … … 851 846 LONG i=SR_TO_INT(a); 852 847 LONG j=SR_TO_INT(b); 848 if (j==1L) return a; 853 849 if ((i==-POW_2_28) && (j== -1L)) 854 850 { 855 FREE_RNUMBER(u);856 851 return nlRInit(POW_2_28); 857 852 } … … 859 854 if (r==0) 860 855 { 861 FREE_RNUMBER(u); // omFreeBin((void *)u, rnumber_bin);862 856 return INT_TO_SR(i/j); 863 857 } 858 u=ALLOC_RNUMBER(); 859 u->s=0; 860 #if defined(LDEBUG) 861 u->debug=123456; 862 #endif 864 863 mpz_init_set_si(u->z,(long)i); 865 864 mpz_init_set_si(u->n,(long)j); … … 867 866 else 868 867 { 868 u=ALLOC_RNUMBER(); 869 u->s=0; 870 #if defined(LDEBUG) 871 u->debug=123456; 872 #endif 869 873 mpz_init(u->z); 870 874 // ---------- short / long ------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.