diff options
Diffstat (limited to 'Common/StringToInt.cpp')
-rwxr-xr-x | Common/StringToInt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Common/StringToInt.cpp b/Common/StringToInt.cpp index 1fa8ef21..ec6733e3 100755 --- a/Common/StringToInt.cpp +++ b/Common/StringToInt.cpp @@ -7,7 +7,7 @@ UInt64 ConvertStringToUInt64(const char *s, const char **end) { UInt64 result = 0; - while(true) + for (;;) { char c = *s; if (c < '0' || c > '9') @@ -25,7 +25,7 @@ UInt64 ConvertStringToUInt64(const char *s, const char **end) UInt64 ConvertOctStringToUInt64(const char *s, const char **end) { UInt64 result = 0; - while(true) + for (;;) { char c = *s; if (c < '0' || c > '7') @@ -44,7 +44,7 @@ UInt64 ConvertOctStringToUInt64(const char *s, const char **end) UInt64 ConvertStringToUInt64(const wchar_t *s, const wchar_t **end) { UInt64 result = 0; - while(true) + for (;;) { wchar_t c = *s; if (c < '0' || c > '9') |