bugfix: fix compiler warning: converting double to float.
Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>pull/413/head
parent
43dbd6d873
commit
cee583db06
|
@ -376,7 +376,7 @@ float ParseTokenAsFloat(const Token& t, const char*& err_out)
|
||||||
return SafeParse<float>(data+1, t.end());
|
return SafeParse<float>(data+1, t.end());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return SafeParse<double>(data+1, t.end());
|
return static_cast<float>( SafeParse<double>(data+1, t.end()) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue