Skip to content

Commit ecda209

Browse files
committed
fix is_scalar_type()
This helper was introduced to add some warning in conditionals which must accept arrays and functions as those degenerate as pointers in this context. There was some sign of a bug somewhere but it wasn't seen and as consequence arrays and function type were added to scalar type (yeah, brown paper bag). Now that the bug is solved, fix this by removing array and function type from is_scalar_type(). Signed-off-by: Luc Van Oostenryck <[email protected]>
1 parent b5867a3 commit ecda209

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

symbol.h

-2
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ static inline int is_scalar_type(struct symbol *type)
395395
case SYM_ENUM:
396396
case SYM_BITFIELD:
397397
case SYM_PTR:
398-
case SYM_ARRAY: // OK, will be a PTR after conversion
399-
case SYM_FN:
400398
case SYM_RESTRICT: // OK, always integer types
401399
return 1;
402400
default:

0 commit comments

Comments
 (0)