Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-05-14
16:01 • Closed ticket [423581ffff]: string first bug with negative firstChar plus 8 ... artifact: c35d33f3f3 user: dkf
2001-05-12
16:51 • New ticket [423581ffff]. artifact: 350166f118 user: nobody

string first bug with negative firstChar

Closed / Fixed423581ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2001-05-12 16:51:51
% set a Blajek
Blajek
% string first l $a
1
% string first l $a 3
-1
% string first l $a 0
1
% string first l $a -1
0
% # I'd prefer 1 here, too
dkfplain2001-05-14 16:01:50
Logged In: YES 
user_id=79902

Urgle. There was no check for negative start indices; no
memory corruption could occur, but the net result was that
the negative index was added to the result value...
Log in (anonymous is fine) to add a comment.