aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2013-07-30 21:02:01 +0200
committerJohannes Schickel2013-07-30 21:02:01 +0200
commit2f9b7ba686c8ba763395fbc876a892cc9ea01fd4 (patch)
tree576842e26f2b26b4d6cdd8c567caed6864fe9b58 /common
parentf51f0e5ae80c9c276357bf5d78ad572fa1bf5e7c (diff)
downloadscummvm-rg350-2f9b7ba686c8ba763395fbc876a892cc9ea01fd4.tar.gz
scummvm-rg350-2f9b7ba686c8ba763395fbc876a892cc9ea01fd4.tar.bz2
scummvm-rg350-2f9b7ba686c8ba763395fbc876a892cc9ea01fd4.zip
COMMON: Enforce formatting guidelines a bit more in util.h.
Diffstat (limited to 'common')
-rw-r--r--common/util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/util.h b/common/util.h
index 4ca1c42929..392ced1ffe 100644
--- a/common/util.h
+++ b/common/util.h
@@ -41,10 +41,10 @@
#undef MAX
#endif
-template<typename T> inline T ABS (T x) { return (x>=0) ? x : -x; }
-template<typename T> inline T MIN (T a, T b) { return (a<b) ? a : b; }
-template<typename T> inline T MAX (T a, T b) { return (a>b) ? a : b; }
-template<typename T> inline T CLIP (T v, T amin, T amax)
+template<typename T> inline T ABS(T x) { return (x >= 0) ? x : -x; }
+template<typename T> inline T MIN(T a, T b) { return (a < b) ? a : b; }
+template<typename T> inline T MAX(T a, T b) { return (a > b) ? a : b; }
+template<typename T> inline T CLIP(T v, T amin, T amax)
{ if (v < amin) return amin; else if (v > amax) return amax; else return v; }
/**