mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
+1
-1
@@ -1837,7 +1837,7 @@ gb_internal void check_range_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags)
|
|||||||
|
|
||||||
if (rs->vals.count == 1) {
|
if (rs->vals.count == 1) {
|
||||||
Type *t = type_deref(operand.type);
|
Type *t = type_deref(operand.type);
|
||||||
if (is_type_map(t) || is_type_bit_set(t)) {
|
if (t != NULL && (is_type_map(t) || is_type_bit_set(t))) {
|
||||||
gbString v = expr_to_string(rs->vals[0]);
|
gbString v = expr_to_string(rs->vals[0]);
|
||||||
defer (gb_string_free(v));
|
defer (gb_string_free(v));
|
||||||
error_line("\tSuggestion: place parentheses around the expression\n");
|
error_line("\tSuggestion: place parentheses around the expression\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user