소스 검색

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()) );
 		}
 	}