Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4b595790638db4a149f37d1c086cfe27510f33852c9754ee14e6099f9d6d01d0
Ticket: 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums
User & Date: jan.nijtmans on 2025-11-11 12:00:56
Changes

  1. icomment:
    In Tcl 8.6, it's intentional that TclCompareTwoNumbers is destructive: It is only used in the bytecode engine, when two numbers are popped of the stack, and the compare result is pushed back on the stack. As long as that's the only place it's used, that should be OK.
    
    On 9.0, the function is re-used for the max/min functions which were re-implemented in C. That's where the problem started.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"