Overview
| Artifact ID: | 686aa8ec75dafab7c7d16666b412a4a70ae77002b54675d767d87a927171d9e1 |
|---|---|
| Ticket: | 8dd2807066d7cc4d8604164f39b7f0d65c0dc321
bug in single-argument 'max' with bignums |
| User & Date: | sebres on 2025-11-11 14:46:19 |
Changes
- icomment:
Huh? Your assumption is not correct, you shall check the refCount for literal, not for expr: ``` % tcl::unsupported::representation 9999999999999999999999999999+1,0 value is a pure string with a refcount of 3, object pointer at 0x1649ee0, string representation "9999999999999..." ``` and from tclsh it'd be always larger or equal 3 (literal in code, reference in history, reference in objv in command). So calling max it'd be always shared. In original issue it was a result of `abs` (thus unshared).
- login: "sebres"
- mimetype: "text/x-markdown"