From 69fb4e4c7bea99d1f0390bb28adf2ab071a7a508 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 16 Jan 2015 00:11:50 -0800 Subject: [PATCH] Util: Fix SOCKET_FAILED macro --- CHANGES | 1 + src/util/socket.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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