[Gridflow-cvs] [svn] commit: r3967 - /trunk/base/number.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri Jul 4 14:25:00 EDT 2008


Author: matju
Date: Fri Jul  4 14:24:59 2008
New Revision: 3967

Log:
messing around to make static templates work with both g++ 4.0 and 4.3

Modified:
    trunk/base/number.c

Modified: trunk/base/number.c
==============================================================================
--- trunk/base/number.c (original)
+++ trunk/base/number.c Fri Jul  4 14:24:59 2008
@@ -180,9 +180,11 @@
 template <class T> static inline T gf_trunc (T a) {
 	return (T) floor(abs((double)a)) * (a<0?-1:1); }
 
+namespace {
 // trying to avoid GCC warning about uint8 too small for ==256
 template <class T> static bool equal256 (T     x) {return x==256;}
 template <>               bool equal256 (uint8 x) {return false;}
+};
 
 #ifdef PASS1
 DEF_OP(ignore, a, 0, side==at_right, side==at_left)



More information about the Gridflow-cvs mailing list