Tcl Source Code

View Ticket
Login
Ticket UUID: 57daa91eafa92706d3d8028e673a282f439b8dc3
Title: Tcl_GetIntForIndex handling of n-m (m > n)
Type: Bug Created on: 2024-06-06 07:59:27
Submitter: jan.nijtmans Assigned to: jan.nijtmans
Subsystem: 13. Index Object Severity: Minor
Priority: 5 Medium Last modified: 2024-06-06 10:41:31
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2024-06-06 10:41:31
Version: 8.7
Description:

% testgetintforindex -1 -1
-2147483648
% testgetintforindex 2-3 -1
-1

If the end parameter is -1, then INT_MIN is a special value to be used for "-1". This is not handled correctly for the n-m construct. Both commands above should give the same answer.

This is the root cause for ticket 450a726f4a in Tk

User Comments:
jan.nijtmans added on 2024-06-06 10:41:31:

Fixed [4e384191b5ce84a8|here]