diff options
| author | Samuel Lidén Borell <samuel@kodafritt.se> | 2026-03-16 23:17:27 +0100 |
|---|---|---|
| committer | Samuel Lidén Borell <samuel@kodafritt.se> | 2026-03-16 23:17:27 +0100 |
| commit | 163cd5a81c27d36d688b337864860c9a5a6eb9de5088c92b1d2acc4e3f59d520 (patch) | |
| tree | 207db387554283e1dc7e3a4d7eaee36bde1eb0de0013b474891e04e6832cc50e | |
| parent | 457cb7ab64b7deaf1cbba816b7884c3f0525b6fee069d799d96d841ff689b10c (diff) | |
| download | p9kcc-main.tar.gz p9kcc-main.zip | |
Fix parser state after sizeofmain
| -rwxr-xr-x | p9kcc.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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] != '(': |
