Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4df779bdc345b6b092f72ee47a3c44920dc8920
Ticket: 1601380fffffffffffffffffffffffffffffffff
"UpdateStringOfBignum" error with tcl 8.5a5 on x86_64
User & Date: alhernau on 2006-11-27 21:04:15
Changes

  1. icomment:
    Logged In: YES 
    user_id=818162
    Originator: YES
    
    I've finally managed to get CVS code and recompile it again (got 64bit machine at work and CVS access at home).
    I reproduce same behaviour: the tclsh binary exits with "UpdateStringOfBignum" error.
    
    The values returned by mp_radix_size are: status=0, size=3
    
    It seems the problem comes from mp_div_d, into following code portion,
    it returns 2 on first call, then 0, leading to "digs" being set to 1.
    
      while (mp_iszero (&t) == MP_NO) {
        if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) {
          mp_clear (&t);
          return res;
        }
        ++digs;
      }
    
    I unfortunately have no time left to dig further today ...
    
    
  2. login: "alhernau"
  3. mimetype: "text/plain"
  4. username: "alhernau"