Fix unsafe defines

This commit is contained in:
Chairn 2022-06-27 18:51:02 +02:00
parent b6ca8537ae
commit a9ee57aeb7
3 changed files with 4 additions and 4 deletions

View file

@ -385,8 +385,8 @@ int io_sync(IOHANDLE io)
#endif #endif
} }
#define ASYNC_BUFSIZE 8 * 1024 #define ASYNC_BUFSIZE (8 * 1024)
#define ASYNC_LOCAL_BUFSIZE 64 * 1024 #define ASYNC_LOCAL_BUFSIZE (64 * 1024)
// TODO: Use Thread Safety Analysis when this file is converted to C++ // TODO: Use Thread Safety Analysis when this file is converted to C++
struct ASYNCIO struct ASYNCIO

View file

@ -20,7 +20,7 @@
// support older SDL version (pre 2.0.6) // support older SDL version (pre 2.0.6)
#ifndef SDL_JOYSTICK_AXIS_MIN #ifndef SDL_JOYSTICK_AXIS_MIN
#define SDL_JOYSTICK_AXIS_MIN -32768 #define SDL_JOYSTICK_AXIS_MIN (-32768)
#endif #endif
#ifndef SDL_JOYSTICK_AXIS_MAX #ifndef SDL_JOYSTICK_AXIS_MAX
#define SDL_JOYSTICK_AXIS_MAX 32767 #define SDL_JOYSTICK_AXIS_MAX 32767

View file

@ -84,7 +84,7 @@ struct CFontSizeData
#define MIN_FONT_SIZE 6 #define MIN_FONT_SIZE 6
#define MAX_FONT_SIZE 128 #define MAX_FONT_SIZE 128
#define NUM_FONT_SIZES MAX_FONT_SIZE - MIN_FONT_SIZE + 1 #define NUM_FONT_SIZES (MAX_FONT_SIZE - MIN_FONT_SIZE + 1)
class CFont class CFont
{ {