diff --git a/main/gbc/gbc_trans_expr.c b/main/gbc/gbc_trans_expr.c index 8289cc062..24b4ba1a1 100644 --- a/main/gbc/gbc_trans_expr.c +++ b/main/gbc/gbc_trans_expr.c @@ -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);