ref: 571a7ca72373a25ced91bacd301e365b832a0a5b
parent: 4e322f25c4760774c122c4e7b1662a64d58d5d2d
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue Nov 5 12:33:05 EST 2019
Bug : Put parentheses around IS_COMMAND and its parameters Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- 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