aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-02 00:40:41 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit9d2e9708110130aa764de5359962f6ee53a52515 (patch)
treeaa0fa8e4759574a8c17b19382447223a4f9440e1
parent00ab5c3488c02beab5c3f4e371f5196404334e3c (diff)
Shit
-rw-r--r--src/tokenizer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tokenizer.c b/src/tokenizer.c
index b9f0ad3..e03b441 100644
--- a/src/tokenizer.c
+++ b/src/tokenizer.c
@@ -212,8 +212,7 @@ int tokenizer_consume_if(Tokenizer *self, Token expected_token, bool *result) {
if(!self->needs_update) {
*result = (self->token == expected_token);
- if(*result)
- self->needs_update = bool_true;
+ self->needs_update = *result;
return TOKENIZER_OK;
}