openbsd-ports/games/csmash/patches/patch-loadparts_cpp

14 lines
481 B
Plaintext
Raw Normal View History

$OpenBSD: patch-loadparts_cpp,v 1.1.1.1 2008/07/06 20:43:20 jdixon Exp $
--- loadparts.cpp.orig Wed Nov 19 11:49:31 2003
+++ loadparts.cpp Fri Jul 4 22:09:49 2008
@@ -69,8 +69,7 @@ inline bool between(const T& a, const T& x, const T& b
return a <= x && x <= b;
}
-template <typename T>
-inline const T& clamp(const T& a, const T& x, const T& b) {
+inline const long clamp(long a, long x, long b) {
if (a > x) return a;
elif (b < x) return b;
else return x;