Changeset fc315e3 in git for Singular/ipconv.cc
- Timestamp:
- Jan 16, 2007, 2:30:26 PM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 4aac7e480a94e94b52b2386eb1918bb5895a050a
- Parents:
- 3295ba38add642432868529b1c106db86ba8aa62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipconv.cc
r3295ba rfc315e3 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipconv.cc,v 1.3 2 2007-01-11 11:24:32Singular Exp $ */4 /* $Id: ipconv.cc,v 1.33 2007-01-16 13:30:26 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: automatic type conversions … … 99 99 pDelete((poly *)&data); 100 100 return (void *)m; 101 }102 static void * iiBI2N(void *d)103 {104 void *r=NULL;105 if (rField_is_Q())106 r=d;107 else108 {109 number n=(number)d;110 if (rField_is_Zp())111 {112 r=(void *)npMap0(n);113 }114 else if (rField_is_Q_a())115 {116 r=(void *)naMap00(n);117 }118 else if (rField_is_Zp_a())119 {120 r=(void *)naMap0P(n);121 }122 else123 WerrorS("cannot convert bigint to this field");124 nlDelete(&n,NULL);125 }126 return r;127 101 } 128 102 … … 275 249 // intmat -> matrix 276 250 { INTMAT_CMD, MATRIX_CMD, iiIm2Ma , NULL }, 277 // bigint -> number278 { BIGINT_CMD, NUMBER_CMD, iiBI2N , NULL },279 251 // bigint -> poly 280 252 { BIGINT_CMD, NUMBER_CMD, iiBI2P , NULL },
Note: See TracChangeset
for help on using the changeset viewer.