Merge pull request #6950 from tf2spi/6840-check-any-int-addressing

Disallow types in #any_int params
This commit is contained in:
gingerBill
2026-07-04 16:12:16 +01:00
committed by GitHub

View File

@@ -6784,7 +6784,7 @@ gb_internal CallArgumentError check_call_arguments_internal(CheckerContext *c, A
if (!check_is_assignable_to_with_score(c, o, param_type, &s, param_is_variadic, allow_array_programming)) {
bool ok = false;
if (e && (e->flags & EntityFlag_AnyInt)) {
if (is_type_integer(param_type) && (is_type_integer(o->type) || is_type_enum(o->type))) {
if (o->mode != Addressing_Type && is_type_integer(param_type) && (is_type_integer(o->type) || is_type_enum(o->type))) {
ok = check_is_castable_to(c, o, param_type);
}
}