diff options
| author | 2025-10-15 10:06:21 +0200 | |
|---|---|---|
| committer | 2025-10-15 10:06:21 +0200 | |
| commit | b3f78886ed9ed7e5fc1bd522205e473c3102fc4e (patch) | |
| tree | cf5283a13ef148a717c7bf6defe782561bdd8499 | |
| parent | 0949fe8b08a98299371416bcb62563777e65a54b (diff) | |
c: allow using pointer-decaying types with &&, ||
| -rw-r--r-- | c.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -582,7 +582,7 @@ bintypecheck(const struct span *span, enum toktag tt, struct expr *lhs, struct e ty = mktype(TYINT); break; case BCLOG: /* 6.5.13-14 Logical AND/OR operator */ - if (!isscalar(ty) || !isscalar(rhs->ty)) + if (!isscalar(typedecay(ty)) || !isscalar(typedecay(rhs->ty))) goto Error; ty = mktype(TYINT); break; |