From f05bf5994ae8955501e2355b63ec35e575125374 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 6 Oct 2009 16:02:54 +0000 Subject: In to_u32bit, ignore space characters in input --- src/utils/parsing.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils') diff --git a/src/utils/parsing.cpp b/src/utils/parsing.cpp index bdb9e79dc..58a8e0b38 100644 --- a/src/utils/parsing.cpp +++ b/src/utils/parsing.cpp @@ -23,6 +23,9 @@ u32bit to_u32bit(const std::string& number) { const u32bit OVERFLOW_MARK = 0xFFFFFFFF / 10; + if(*j == ' ') + continue; + byte digit = Charset::char2digit(*j); if((n > OVERFLOW_MARK) || (n == OVERFLOW_MARK && digit > 5)) -- cgit v1.2.3