make offset_of(Bit_Field, ...) an error, typo fix

This commit is contained in:
jakubtomsu
2026-03-23 16:43:11 +01:00
parent a097f3c938
commit b1d9db7b15

View File

@@ -2821,9 +2821,9 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
}
if (is_type_array(type)) {
if (is_type_array(type) || is_type_bit_field(type)) {
gbString t = type_to_string(type);
error(field_arg, "Invalid a struct type for '%.*s', got '%s'", LIT(builtin_name), t);
error(field_arg, "Expected a struct type for '%.*s', got '%s'", LIT(builtin_name), t);
gb_string_free(t);
return false;
}