Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1c2c260847fbda69107495d2c8aee6ba6cbadee8bad1d4020d5ecd1d7333a631
Ticket: 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums
User & Date: jan.nijtmans on 2025-11-10 21:00:10
Changes

  1. icomment:
    Hm .... wait a bit.
    
    Thinking more about it, Tcl_TakeBignumFromObj() should only be used when the Tcl_Obj is Tcl_DecrRefCount'ed immediately. In that case, the current implementation makes sense.
    
    So, if - ever - the string-representation is lost, it means Tcl_GetBignumFromObj() should have been used in stead. The bug in this ticket is an example of the wrong Tcl_TakeBignumFromObj(). The more I think about it, the more it makes sense.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"