mirror of
				https://github.com/open-source-parsers/jsoncpp.git
				synced 2025-11-04 12:17:36 +01:00 
			
		
		
		
	Fixed a double -> float compilation warning/error.
This commit is contained in:
		@@ -875,7 +875,7 @@ Value::asFloat() const
 | 
			
		||||
   case nullValue:
 | 
			
		||||
      return 0.0;
 | 
			
		||||
   case booleanValue:
 | 
			
		||||
      return value_.bool_ ? 1.0 : 0.0;
 | 
			
		||||
      return value_.bool_ ? 1.0f : 0.0f;
 | 
			
		||||
   default:
 | 
			
		||||
      JSON_FAIL_MESSAGE("Value is not convertible to float.");
 | 
			
		||||
   }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user