diff --git a/CHANGES b/CHANGES index dbd702ad6..23da04cc9 100644 --- a/CHANGES +++ b/CHANGES @@ -61,6 +61,7 @@ Bugfixes: - GBA BIOS: Fix HuffUnComp boundary conditions - GBA Video: Fix mode 0 being able to read tiles above appropriate tile range - GBA Audio: Properly initialize audio FIFO channels + - Util: Fix SOCKET_FAILED macro Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it diff --git a/src/util/socket.h b/src/util/socket.h index adb39d188..d2049df84 100644 --- a/src/util/socket.h +++ b/src/util/socket.h @@ -16,7 +16,7 @@ #include #include -#define SOCKET_FAILED(s) (s) == INVALID_SOCKET +#define SOCKET_FAILED(s) ((s) == INVALID_SOCKET) typedef SOCKET Socket; #else #include @@ -25,7 +25,7 @@ typedef SOCKET Socket; #include #define INVALID_SOCKET (-1) -#define SOCKET_FAILED(s) (s) < 0 +#define SOCKET_FAILED(s) ((s) < 0) typedef int Socket; #endif