Changeset 75582e in git


Ignore:
Timestamp:
Apr 10, 2024, 11:12:22 AM (4 weeks ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4bd32dfef92ec9f5ed8dceee82d14318ae147107')
Children:
77d0bf735657ddd72e8000512e173a937c1e18bf
Parents:
806aa6c0fd11dd028cc4613b3207981bf99cd82a
Message:
fix: assign number -> bigint
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r806aa6c r75582e  
    1818#include "coeffs/numbers.h"
    1919#include "coeffs/bigintmat.h"
     20#include "coeffs/longrat.h"
    2021
    2122
     
    710711  number p=(number)a->Data();
    711712  number pp=NULL;
    712   if (rField_is_Q(currRing))
    713     pp=nCopy(p);
    714   else if (rField_is_Z(currRing))
     713  if (currRing->cf->rep==n_rep_gap_rat)
     714  {
     715    if (SR_HDL(a) & SR_INT) pp=p;
     716    else if (p->s==3) pp=nCopy(p);
     717    else
     718    {
     719      WerrorS("cannot assign to bigint");
     720      return TRUE;
     721    }
     722  }
     723  else if (currRing->cf->rep==n_rep_gmp)
    715724    pp=coeffs_BIGINT->cfInitMPZ((mpz_ptr)p,coeffs_BIGINT);
    716725  else
  • Tst/Short/bug_tr844.res.gz.uu

    r806aa6c r75582e  
    11begin 640 bug_tr844.res.gz
    2 M'XL("/Q5%68"`V)U9U]T<C@T-"YR97,`=9!/"X)`$,7O?HJ'=%"PM57+0II#
    3 M=!%"$#MU$:60A5I"-^KCM_YA[=)IAO=[C\=,<3ZF&0!..*4'V*I3["YJ.[&*
    4 MB00$+99""N6XB=5/$*%^-:5JMU'$Y.W-.E4IDP@)9H\8?!^/ZHE\21>G%HV0
    5 MRC5XS=`*V:#=Y[GW\:[/N7=#T%;(68EUZY!'-HM;@L2^MSJQ'[I)'P@,W1$R
    6 J3<?89,A^#'PU&OY0/E)-3"$/YNMXR(;?]->_.H>[R<+Z`AS"*>!1`0``
     2M'XL("+]7%F8"`V)U9U]T<C@T-"YR97,`=9!?2\,P%,7?^RD.PX<69FK_Z*9A
     3M$<27@13*?/)E:[M8`C,928I^?-.EIGOQ*3?G=\ZY<'?OK]L*0,;PMGW!PAI+
     4M3J)=T&@WD9S!B7LAA8T3&HTO&$,[]'NKUV5))/\FQC8V)`J&,)<$:8JOYHSZ
     5MEGW$K>B%M$G`]P1:R!YZ4]?+G^7Q/.]]8'!6R%E9N:V7/*I97#-(;$9KO$J+
     6MA(Z!/-!'ALI1'YL,U94AN_.&?VCFJ2,T<FW/Z!HIE45CC.@EK)J:/>1:*PW5
     7M=8/6_.@ZX;XM_U2:PS>>A.2N]0F'O]I#V)7/5\L*<KGY>-7!Q%E";Z)?0$T(
     8%;*D!````
    79`
    810end
  • Tst/Short/bug_tr844.stat

    r806aa6c r75582e  
    1 1 >> tst_memory_0 :: 1712674300:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:84504
    2 1 >> tst_memory_1 :: 1712674300:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2150240
    3 1 >> tst_memory_2 :: 1712674300:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2191344
    4 1 >> tst_timer_1 :: 1712674300:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2
     11 >> tst_memory_0 :: 1712740287:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:84448
     21 >> tst_memory_1 :: 1712740287:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2150240
     31 >> tst_memory_2 :: 1712740287:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2191344
     41 >> tst_timer_1 :: 1712740287:44000, 64 bit:4.4.0:x86_64-Linux:nepomuck:2
Note: See TracChangeset for help on using the changeset viewer.