Skip to content

Commit

Permalink
Fix a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
stikonas committed Nov 11, 2021
1 parent b241491 commit ba51f3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions cc_reader.c
Expand Up @@ -377,6 +377,7 @@ struct token_list* replace_assignment(struct token_list* head, char* c)
{
line = head->linenumber;
file = head->filename;
require(NULL != head->prev, "Expecting identifier before assignment\n");
head = eat_token(head)->prev;
head = insert_token(head, "=");
head = insert_token(head, head->prev->s);
Expand Down
12 changes: 6 additions & 6 deletions test/test.answers
Expand Up @@ -227,9 +227,9 @@ eb1f6aab09a1a4966f9f49a518d8aa03ca97aa7c46e443871d758a306671a85e test/results/t
a2cbfd5f76d3be8049c6737e3fa02f191caf29b6885db006fa23f86e6eacc186 test/results/test0106-knight-posix-binary
d75e450e2fcdf19df63f9d6a3fe5e032933e57b33f6f06b39a8ed2f3dc759f17 test/results/test0106-riscv64-binary
473cc504d6cba9eaf648abcf15c83a317ff3f4a7f08f5e8936e3b35b2cc4fbc6 test/results/test0106-x86-binary
5cbb6ee27ff541e5c30caeb2eac6837182d3c9f26c5d632488611235674ccb58 test/results/test1000-aarch64-binary
e94a78530bc47e589c5ccc1fe28e27142375c5d85a1336dd55548c61a7ea6279 test/results/test1000-amd64-binary
7951b907e5e355069a2a9fce013e1cd0fc87fa2471c4a54091a4928615cbdd6f test/results/test1000-armv7l-binary
fb6954e3780b31b3bac3435daccfd9ef2632ffce9fec4149298b131515e84a3e test/results/test1000-knight-posix-binary
3fd248956e7e9cbda73677787c7225d1315a9e640719015a6033d38a11773724 test/results/test1000-riscv64-binary
577170ec7620b064034b34bb9d3d819c277ee47c6a21c9123970c639f7434071 test/results/test1000-x86-binary
7729e3279192002ce69af057534670779b30c7ae0feaef82e11d4c8b74278b94 test/results/test1000-aarch64-binary
be88d5e1b0c5584192beb7b7380e578925993a636a0e338a319f39b56407a192 test/results/test1000-amd64-binary
92f9f8134a2213d45919a562160d57f58de94870979af80ff7d52b47c196536f test/results/test1000-armv7l-binary
e47006b7829ddfc1a4f1aa545e8a09950e8053ff6841c5d5922a330c8849b384 test/results/test1000-knight-posix-binary
bbeb55c436f1c26e1cddfb0a47da350219f817017ba0139dbde56392522f4406 test/results/test1000-riscv64-binary
0891395cd28e6d0adb6feed07b0fce5b8c1245eeb2bf673aa488fe037daf349c test/results/test1000-x86-binary
2 changes: 1 addition & 1 deletion test/test1000/proof.answer
@@ -1 +1 @@
f7f8e4598afb90a55284d625f0e97bea411bd5e0b8a1dcac49647493203ff336 test/test1000/proof
9ee96e67f254dab17c5a2aa697dfd609d1b07103e0a8b873ba3d7e22386a8c3c test/test1000/proof

0 comments on commit ba51f3d

Please sign in to comment.