forked from Mirrors/openclonk
parent
6b5d884dbd
commit
bc073f6035
|
@ -166,4 +166,8 @@ const C4Real Fix0 = C4Real(0);
|
|||
// CompileFunc for C4Real
|
||||
void CompileFunc(C4Real &rValue, StdCompiler *pComp);
|
||||
|
||||
C4Real Sin(const C4Real &);
|
||||
C4Real Cos(const C4Real &);
|
||||
C4Real Pow(const C4Real &, const C4Real &);
|
||||
|
||||
#endif //C4REAL_H_INC
|
||||
|
|
|
@ -111,7 +111,7 @@ bool C4Value::WarnAboutConversion(C4V_Type Type, C4V_Type vtToType)
|
|||
{
|
||||
case C4V_Nil: return Type != C4V_Nil && Type != C4V_Any;
|
||||
case C4V_Float: case C4V_Numeric:
|
||||
case C4V_Int: return Type != C4V_Int && Type != C4V_Float && Type != C4V_Nil && Type != C4V_Bool && Type != C4V_Any;
|
||||
case C4V_Int: return Type != C4V_Int && Type != C4V_Float && Type != C4V_Numeric && Type != C4V_Nil && Type != C4V_Bool && Type != C4V_Any;
|
||||
case C4V_Bool: return false;
|
||||
case C4V_PropList: return Type != C4V_PropList && Type != C4V_Effect && Type != C4V_Def && Type != C4V_Object && Type != C4V_Nil && Type != C4V_Any;
|
||||
case C4V_String: return Type != C4V_String && Type != C4V_Nil && Type != C4V_Any;
|
||||
|
|
Loading…
Reference in New Issue