From 3993102e880f2a31b6fef9484b8527a58e850744 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Mon, 29 Dec 2014 23:53:08 +1000 Subject: Fix -Wtype-limits warnings and remove disabling of -Wtype-limits --- src/serialization.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/serialization.h') diff --git a/src/serialization.h b/src/serialization.h index 41a505455..caa1a66da 100644 --- a/src/serialization.h +++ b/src/serialization.h @@ -72,7 +72,9 @@ with this program; if not, write to the Free Software Foundation, Inc., // Lowest supported serialization version #define SER_FMT_VER_LOWEST 0 -#define ser_ver_supported(v) (v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ) +inline bool ser_ver_supported(s32 v) { + return v >= SER_FMT_VER_LOWEST && v <= SER_FMT_VER_HIGHEST_READ; +} /* Misc. serialization functions -- cgit v1.2.3