diff options
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/StringUtil.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 7df5164698..882a811077 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -22,7 +22,7 @@ #include "TestFramework.h"
// faster than sscanf
-u32 AsciiToHex(const char* _szValue)
+bool AsciiToHex(const char* _szValue, u32& result)
{
u32 value = 0;
size_t finish = strlen(_szValue);
@@ -126,12 +126,13 @@ u32 AsciiToHex(const char* _szValue) break;
default:
- value >>= 4;
+ return false;
break;
}
}
- return(value);
+ result = value;
+ return (true);
}
|
