Changeset 5c8e18f in git
- Timestamp:
- Jan 23, 2014, 2:22:22 PM (9 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'cdfcdb8287f66bc6070028082cbbc6eff10e609b')
- Children:
- 8baa377f0e7bdff672abd5ddeade4e629a51e405
- Parents:
- 616d68556ae75bb7c49364150bb827162c506899
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r616d685 r5c8e18f 1787 1787 for(i=rl-1;i>=0;i--) 1788 1788 { 1789 q[i]=n_Init((*p)[i], c urrRing->cf);1789 q[i]=n_Init((*p)[i], coeffs_BIGINT); 1790 1790 } 1791 1791 } … … 1796 1796 if (pl->m[i].Typ()==INT_CMD) 1797 1797 { 1798 if (return_type==BIGINT_CMD) 1799 q[i]=n_Init((int)(long)pl->m[i].Data(),coeffs_BIGINT); 1800 else 1801 q[i]=n_Init((int)(long)pl->m[i].Data(),currRing->cf); 1798 q[i]=n_Init((int)(long)pl->m[i].Data(),coeffs_BIGINT); 1802 1799 } 1803 1800 else if (pl->m[i].Typ()==BIGINT_CMD) 1804 1801 { 1805 if (return_type==BIGINT_CMD) 1806 q[i]=n_Copy((number)(pl->m[i].Data()),coeffs_BIGINT); 1807 else 1808 q[i]=n_Init_bigint((number)(pl->m[i].Data()),coeffs_BIGINT,currRing->cf); 1802 q[i]=n_Copy((number)(pl->m[i].Data()),coeffs_BIGINT); 1809 1803 } 1810 1804 else 1811 1805 { 1812 1806 Werror("bigint expected at pos %d",i+1); 1813 if (return_type==BIGINT_CMD)1814 1807 for(i++;i<rl;i++) 1815 1808 { 1816 1809 n_Delete(&(q[i]),coeffs_BIGINT); 1817 1810 } 1818 else1819 for(i++;i<rl;i++)1820 {1821 n_Delete(&(q[i]),currRing);1822 }1823 1824 1811 omFree(x); // delete c 1825 1812 omFree(q); // delete pl … … 1840 1827 res->data=(char *)result; 1841 1828 } 1842 if (return_type==BIGINT_CMD)1843 1829 for(i=rl-1;i>=0;i--) 1844 1830 { 1845 1831 n_Delete(&(q[i]),coeffs_BIGINT); 1846 }1847 else1848 for(i=rl-1;i>=0;i--)1849 {1850 n_Delete(&(q[i]),currRing);1851 1832 } 1852 1833 omFree(q); -
libpolys/coeffs/longrat.cc
r616d685 r5c8e18f 2631 2631 nlDelete(&p,CF); 2632 2632 } 2633 nlNormalize(n,CF); 2633 2634 return n; 2634 2635 } -
libpolys/polys/ext_fields/transext.cc
r616d685 r5c8e18f 2383 2383 omFreeSize(X,rl*sizeof(number)); 2384 2384 omFreeSize(P,rl*sizeof(poly*)); 2385 if (p_IsConstant(DEN(result), ntRing) 2386 && n_IsOne(pGetCoeff(DEN(result)), ntCoeffs)) 2387 { 2388 p_Delete(&DEN(result),ntRing); 2389 } 2385 2390 return ((number)result); 2386 2391 }
Note: See TracChangeset
for help on using the changeset viewer.