Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #38176] [PATCH] Fix string-to-integer conversion with multiple leading spaces

1 view
Skip to first unread message

Roger Browne

unread,
Jan 6, 2006, 1:13:11 PM1/6/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Roger Browne
# Please include the string: [perl #38176]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38176 >


Until r10938, string-to-integer conversion was possible even when the
string contained more than one space before the start of the integer.

This patch modifies src/string.t to make this work again.

This patch also modifies t/op/string.t to add a test for this case, and
for other corner-cases of string-to-integer conversion.

$ diffstat s2i.patch
src/string.c | 4 +++-
t/op/string.t | 26 +++++++++++++++++++++++++-
2 files changed, 28 insertions(+), 2 deletions(-)

Regards,
Roger Browne

s2i.patch

Leopold Toetsch

unread,
Jan 10, 2006, 11:54:51 AM1/10/06
to perl6-i...@perl.org, bugs-bi...@netlabs.develooper.com

> Until r10938, string-to-integer conversion was possible even when the
> string contained more than one space before the start of the integer.

Thanks, applied - r11042.
leo

0 new messages