bugfix: fix compiler warning: converting double to float.
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
This commit is contained in:
@@ -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()) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user