cast from long to int
This commit is contained in:
parent
cef18ad49e
commit
df817a54fc
|
@ -315,7 +315,7 @@ long ExpressionAssignInt(struct ParseState *Parser, struct Value *DestValue,
|
||||||
Result = FromInt;
|
Result = FromInt;
|
||||||
|
|
||||||
switch (DestValue->Typ->Base) {
|
switch (DestValue->Typ->Base) {
|
||||||
case TypeInt: DestValue->Val->Integer = FromInt; break;
|
case TypeInt: DestValue->Val->Integer = (int)FromInt; break;
|
||||||
case TypeShort: DestValue->Val->ShortInteger = (short)FromInt; break;
|
case TypeShort: DestValue->Val->ShortInteger = (short)FromInt; break;
|
||||||
case TypeChar: DestValue->Val->Character = (char)FromInt; break;
|
case TypeChar: DestValue->Val->Character = (char)FromInt; break;
|
||||||
case TypeLong: DestValue->Val->LongInteger = (long)FromInt; break;
|
case TypeLong: DestValue->Val->LongInteger = (long)FromInt; break;
|
||||||
|
|
Loading…
Reference in a new issue