mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
- silence float truncation warnings for explicit casts.
This commit is contained in:
parent
4739c71b39
commit
16c6e2db05
1 changed files with 1 additions and 1 deletions
|
@ -932,7 +932,7 @@ FxExpression *FxIntCast::Resolve(FCompileContext &ctx)
|
||||||
{
|
{
|
||||||
ExpVal constval = static_cast<FxConstant *>(basex)->GetValue();
|
ExpVal constval = static_cast<FxConstant *>(basex)->GetValue();
|
||||||
FxExpression *x = new FxConstant(constval.GetInt(), ScriptPosition);
|
FxExpression *x = new FxConstant(constval.GetInt(), ScriptPosition);
|
||||||
if (constval.GetInt() != constval.GetFloat())
|
if (constval.GetInt() != constval.GetFloat() && !Explicit)
|
||||||
{
|
{
|
||||||
ScriptPosition.Message(MSG_WARNING, "Truncation of floating point constant %f", constval.GetFloat());
|
ScriptPosition.Message(MSG_WARNING, "Truncation of floating point constant %f", constval.GetFloat());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue