From a3b3ffcc22a796a15b4df37420eb9a9e171179e4 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 11 Jan 2008 11:26:33 +0000 Subject: [PATCH] min/max fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1571 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/tools.h b/source/src/tools.h index b1e217f1..6cb07311 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -39,12 +39,12 @@ void swap(T &a, T &b) #undef min #endif template -const T &max(const T &a, const T &b) +T max(T a, T b) { return a > b ? a : b; } template -const T &min(const T &a, const T &b) +T min(T a, T b) { return a < b ? a : b; }