mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	toString( int ) uses hex for large values
now matches behaviour of unsigned int
This commit is contained in:
		| @@ -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(); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash