toString( int ) uses hex for large values

now matches behaviour of unsigned int
This commit is contained in:
Phil Nash committed 2014-12-12 08:10:45 +00:00
1 parent bd9fbe25f6
commit ff9e51df7f
3 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -98,7 +98,10 @@ std::string toString( wchar_t* const value )
std::string toString( int value ) {
std::ostringstream oss;
oss << value;
if( value > 8192 )
oss << "0x" << std::hex << value;
else
oss << value;
return oss.str();
}