Overview
| Artifact ID: | ec0ed326fda6dbaca7aa5c75b21883f3b0df558911b5b10c34e20513eb4bde52 |
|---|---|
| Ticket: | 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums |
| User & Date: | jan.nijtmans on 2025-11-11 14:09:13 |
Changes
- icomment:
> But, IMHO it is not correct - even with refCounts 1 (or 0), one can't guarantee that the object will be unused hereafter I'm trying to create a test-case, showing the remaining problem (if there is one), but I'm not getting very far. Something like: <pre> $ tclsh9.0 % tcl::unsupported::representation [expr {max(9999999999999999999999999999+1,0)}] value is a bignum with a refcount of 2, object pointer at 0xa0009c0c0, internal representation 0xa000dfc30:0x100002, no string representation % puts [expr {max(9999999999999999999999999999+1,0)}] 10000000000000000000000000000 </pre> This works as expected. Any idea? - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"