Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-05-02
08:43 • Closed ticket [bb69c8d17e]: Compiled string last fails on large strings plus... artifact: a2c08a56d6 user: apnadkarni
08:42
Fix [bb69c8d17e] compiled string last check-in: 6964e7e16a user: apnadkarni tags: trunk, main
07:43 • New ticket [bb69c8d17e] Compiled string last fails on large strings. artifact: b0a333a635 user: apnadkarni

Compiled string last fails on large strings

Closed / Fixedbb69c8d17eae8c32dda57bd6de721753122c7b5fCreated 4 years agoUpdated 4 years ago
Descriptionmarkdown2023-05-02 07:43:54

string last fails on large strings when the script is compiled but not direct evaluation.

% set string string
string
% string last 0 $s
2147483640 -> wrong
% $string last 0 $s
4294967300 -> correct

Clearly an int use somewhere instead of Tcl_Size.

Referenced by1
apnadkarniplain2023-05-02 08:43:24
Fixed in [6964e7e16a].
Log in (anonymous is fine) to add a comment.