ref: bac98f74021dab81ad76f8a84343087f3bdbcffe
parent: 69ec37c1cc8746450997fa7cb06c5027a28378fb
parent: 571a7ca72373a25ced91bacd301e365b832a0a5b
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Nov 9 09:00:14 EST 2019
Merge pull request #81 from GabrielRavier/surroundMacroWithParentheses Surrounded the IS_COMMAND macro with parentheses
--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -33,7 +33,7 @@
#include "Stage.h"
#include "Tags.h"
-#define IS_COMMAND(c1, c2, c3) gTS.data[gTS.p_read + 1] == c1 && gTS.data[gTS.p_read + 2] == c2 && gTS.data[gTS.p_read + 3] == c3
+#define IS_COMMAND(c1, c2, c3) (gTS.data[gTS.p_read + 1] == (c1) && gTS.data[gTS.p_read + 2] == (c2) && gTS.data[gTS.p_read + 3] == (c3))
#define TSC_BUFFER_SIZE 0x5000