From 28504a5c9ba6d9fca74342f470d81a319f3616a6 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 4 Apr 2007 01:14:02 +0000 Subject: [PATCH] very minor changes to utils.h Originally committed to SVN as r993. --- aegisub/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/utils.h b/aegisub/utils.h index 7610a10ec..17b6babda 100644 --- a/aegisub/utils.h +++ b/aegisub/utils.h @@ -75,7 +75,7 @@ int SmallestPowerOf2(int x); #ifdef __VISUALC__ #define FORCEINLINE __forceinline #else -#define FORCEINLINE inline +#define FORCEINLINE inline // __attribute__((always_inline)) gives me errors on g++ ~amz #endif #endif @@ -92,7 +92,7 @@ static inline void IntSwap(int &a,int &b) { ////////////////////////// // Clamp integer to range // Code taken from http://bob.allegronetwork.com/prog/tricks.html#clamp -FORCEINLINE static int ClampSignedInteger32(int x,int min,int max) { +static FORCEINLINE int ClampSignedInteger32(int x,int min,int max) { x -= min; x &= (~x) >> 31; x += min;