Fix compilation of short or byte constants.

[COMPILER]
* BUG: Fix compilation of short or byte constants.
This commit is contained in:
Benoît Minisini 2023-10-29 22:36:41 +01:00
parent 378623a500
commit 87dec4871e

View File

@ -328,7 +328,7 @@ static void trans_identifier(int index, bool point, PATTERN next)
CODE_push_boolean(constant->value);
else if (type == T_INTEGER)
CODE_push_number(constant->value);
else if (constant->is_integer)
else if (type == T_FLOAT && constant->is_integer)
CODE_push_float(constant->value);
else
CODE_push_const(sym->global.value);