فهرست منبع

bugfix: fix compiler warning: converting double to float.

Signed-off-by: Kim Kulling <[email protected]>
Kim Kulling 11 سال پیش
والد
کامیت
cee583db06
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      code/FBXParser.cpp

+ 1 - 1
code/FBXParser.cpp

@@ -376,7 +376,7 @@ float ParseTokenAsFloat(const Token& t, const char*& err_out)
 			return SafeParse<float>(data+1, t.end());
 		}
 		else {
-			return SafeParse<double>(data+1, t.end());
+			return static_cast<float>( SafeParse<double>(data+1, t.end()) );
 		}
 	}