Browse Source

🎨 Acceptable part of bugprone-*

pull/1592/head^2
Anders Jenbo 5 years ago
parent
commit
09e0607ddc
  1. 2
      Source/controls/touch.cpp
  2. 2
      Source/storm/storm.cpp

2
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);

2
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;
}

Loading…
Cancel
Save