aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xp9kcc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/p9kcc.py b/p9kcc.py
index 06bc955..f907202 100755
--- a/p9kcc.py
+++ b/p9kcc.py
@@ -502,6 +502,7 @@ class Ds9kCCompiler:
# sizeof is handled as if it was terminal token
size = self.parse_sizeof(it)
out.append(NUM_PREFIX + str(size))
+ operator_expected = True
elif self.is_type_token(tok) or c == '%':
# Skip type cast
if len(opstack) == 0 or opstack[-1][0] != '(':