- let's add a 'float' cast, too, just in case. It still will cast to double, because single precision floats only can exist as memory values.

This commit is contained in:
Christoph Oelckers 2016-11-06 13:21:47 +01:00
parent 398433b5e6
commit 6414fd301b

View file

@ -6086,6 +6086,7 @@ FxExpression *FxFunctionCall::Resolve(FCompileContext& ctx)
case NAME_Bool: case NAME_Bool:
case NAME_Int: case NAME_Int:
case NAME_uInt: case NAME_uInt:
case NAME_Float:
case NAME_Double: case NAME_Double:
case NAME_Name: case NAME_Name:
case NAME_Color: case NAME_Color:
@ -6097,6 +6098,7 @@ FxExpression *FxFunctionCall::Resolve(FCompileContext& ctx)
MethodName == NAME_Bool ? TypeBool : MethodName == NAME_Bool ? TypeBool :
MethodName == NAME_Int ? TypeSInt32 : MethodName == NAME_Int ? TypeSInt32 :
MethodName == NAME_uInt ? TypeUInt32 : MethodName == NAME_uInt ? TypeUInt32 :
MethodName == NAME_Float ? TypeFloat64 :
MethodName == NAME_Double ? TypeFloat64 : MethodName == NAME_Double ? TypeFloat64 :
MethodName == NAME_Name ? TypeName : MethodName == NAME_Name ? TypeName :
MethodName == NAME_Color ? TypeColor : MethodName == NAME_Color ? TypeColor :