Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f119dd41c004e6188e81b91cddb272eafeedcc52
Ticket: 1770224fffffffffffffffffffffffffffffffff
TclGetNumberFromObj caller must save result
User & Date: dgp on 2007-08-09 02:35:22
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: YES
    
    
    ok, problem is that when TclGetNumberFromObj()
    returns a bignum, it uses some temp space.
    The caller is supposed to save the result before
    calling again.  The >> implementation code is
    not doing so, so when both arguments are bignums,
    we end up doing the operation with the second
    argument twice.
    
    This not only points the way to fixing this bug;
    it points out a whole project of code review to
    be done. 
    
    Ick.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. title changed to: "TclGetNumberFromObj caller must save result"
  5. username: "dgp"