Merge pull request #81 from GabrielRavier/surroundMacroWithParentheses

Surrounded the IS_COMMAND macro with parentheses
This commit is contained in:
Clownacy 2019-11-09 14:00:14 +00:00 committed by GitHub
commit bac98f7402
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@
#include "Stage.h" #include "Stage.h"
#include "Tags.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 #define TSC_BUFFER_SIZE 0x5000