Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ffc5b19a344e4ef0c0c0b1570df725937729d6209d158e5b7b672bfc564a812c
Ticket: 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums
User & Date: jan.nijtmans on 2025-11-10 09:41:24
Changes

  1. icomment:
    I think the solution is more complicated than that.
    
    Tcl_GetNumberFromObj() documentation:
    <pre>
     * Side effects:
     *      Can allocate thread-specific data for handling the copy-out space for
     *      bignums; this space is shared within a thread.
    </pre>
    
    So you cannot call Tcl_GetNumberFromObj() twice in a row without copying the result in between ..... That looks to be the problem here.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"