#1508 string first bug with negative firstChar

obsolete: 8.3.2
closed-fixed
5
2001-05-14
2001-05-12
Anonymous
No

% 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

Discussion

  • Donal K. Fellows

    • assigned_to: nobody --> dkf
    • status: open --> closed-fixed
     
  • Donal K. Fellows

    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...

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks