Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_GetIntForIndex handling of n-m (m > n)

Closed / Fixed57daa91eafa92706d3d8028e673a282f439b8dc3Created 2 years agoUpdated 2 years ago
Descriptionwiki2024-06-06 07:59:27
% 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

jan.nijtmans Ticket [57daa91eaf]: 3 changes [History diff]2024-06-06 07:59:43
jan.nijtmanswiki2024-06-06 10:41:31

Fixed [here]

Log in (anonymous is fine) to add a comment.