diff --git a/Source/controls/touch.cpp b/Source/controls/touch.cpp index dfeb567af..ab0c216c8 100644 --- a/Source/controls/touch.cpp +++ b/Source/controls/touch.cpp @@ -23,7 +23,7 @@ inline T clip(T v, T amin, T amax) } #define TOUCH_PORT_MAX_NUM 1 -#define NO_TOUCH -1 // finger id setting if finger is not touching the screen +#define NO_TOUCH (-1) // finger id setting if finger is not touching the screen static void init_touch(void); static void preprocess_events(SDL_Event *event); diff --git a/Source/storm/storm.cpp b/Source/storm/storm.cpp index 8fd8dc5d6..b52877e7d 100644 --- a/Source/storm/storm.cpp +++ b/Source/storm/storm.cpp @@ -165,7 +165,7 @@ bool SBmpLoadImage(const char *pszFileName, SDL_Color *pPalette, BYTE *pBuffer, pszFileName = strchr(pszFileName, 46); // omit all types except PCX - if (!pszFileName || strcasecmp(pszFileName, ".pcx")) { + if (!pszFileName || strcasecmp(pszFileName, ".pcx") != 0) { return false; }