From ebaf65951bf6b1e7412acceb4fd43c8a536421db Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 26 Mar 2012 22:04:06 +0000 Subject: [PATCH] Change input and return types of inline function clamp() from int to int32_t. git-svn-id: https://svn.eduke32.com/eduke32@2545 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index d8bea5118..48f2e7a36 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -396,9 +396,9 @@ static inline void dtol(double d, int32_t *a) #endif #if __GNUC__ >= 4 -static inline __attribute__((warn_unused_result)) int clamp(int in, int min, int max) +static inline __attribute__((warn_unused_result)) int32_t clamp(int32_t in, int32_t min, int32_t max) #else -static inline int clamp(int in, int min, int max) +static inline int32_t clamp(int32_t in, int32_t min, int32_t max) #endif { return in <= min ? min : (in >= max ? max : in);