Changeset fc315e3 in git for Singular/ipconv.cc


Ignore:
Timestamp:
Jan 16, 2007, 2:30:26 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4aac7e480a94e94b52b2386eb1918bb5895a050a
Parents:
3295ba38add642432868529b1c106db86ba8aa62
Message:
*hannes: no automatic bigint->number


git-svn-id: file:///usr/local/Singular/svn/trunk@9725 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipconv.cc

    r3295ba rfc315e3  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipconv.cc,v 1.32 2007-01-11 11:24:32 Singular Exp $ */
     4/* $Id: ipconv.cc,v 1.33 2007-01-16 13:30:26 Singular Exp $ */
    55/*
    66* ABSTRACT: automatic type conversions
     
    9999  pDelete((poly *)&data);
    100100  return (void *)m;
    101 }
    102 static void * iiBI2N(void *d)
    103 {
    104   void *r=NULL;
    105   if (rField_is_Q())
    106     r=d;
    107   else
    108   {
    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     else
    123       WerrorS("cannot convert bigint to this field");
    124     nlDelete(&n,NULL);
    125   }
    126   return r;
    127101}
    128102
     
    275249//  intmat -> matrix
    276250   { INTMAT_CMD,      MATRIX_CMD,     iiIm2Ma , NULL },
    277 //  bigint -> number
    278    { BIGINT_CMD,      NUMBER_CMD,     iiBI2N , NULL },
    279251//  bigint -> poly
    280252   { BIGINT_CMD,      NUMBER_CMD,     iiBI2P , NULL },
Note: See TracChangeset for help on using the changeset viewer.