From 3b16b67dda6dffff67bf1989a540167e5ec6e9cc Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Mon, 20 Jun 2005 12:01:40 +0000 Subject: Fixed bug in strToInt64 that would result in parsing failure for parsing "0". --- cpp/src/IceUtil/InputUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/src/IceUtil/InputUtil.cpp') diff --git a/cpp/src/IceUtil/InputUtil.cpp b/cpp/src/IceUtil/InputUtil.cpp index a141cdef965..b6fc2ce7cc2 100644 --- a/cpp/src/IceUtil/InputUtil.cpp +++ b/cpp/src/IceUtil/InputUtil.cpp @@ -102,6 +102,10 @@ strToInt64Impl(const char* s, char** endptr, int base) // if(*s == '\0') { + if(endptr) + { + *endptr = const_cast(s); + } return 0; } -- cgit v1.2.3