[Gridflow-cvs] [svn] commit: r4208 - /trunk/gridflow.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Oct 14 23:28:31 EDT 2009


Author: matju
Date: Wed Oct 14 23:28:30 2009
New Revision: 4208

Log:
fix for platforms that don't define ulong

Modified:
    trunk/gridflow.h

Modified: trunk/gridflow.h
==============================================================================
--- trunk/gridflow.h (original)
+++ trunk/gridflow.h Wed Oct 14 23:28:30 2009
@@ -82,7 +82,7 @@
 typedef double  float64;
 
 // three-way comparison (T is assumed Comparable)
-template <class T> static inline T cmp(T a, T b) { return a<b ? -1 : a>b; }
+template <class T> static inline T cmp(T a, T b) {return a<b ? -1 : a>b;}
 
 // a remainder function such that div2(a,b)*b+mod(a,b) = a and for which mod(a,b) is in [0;b) or (b;0].
 // in contrast to C-language builtin a%b, this one has uniform behaviour around zero,
@@ -789,7 +789,7 @@
 
 #define CHECK_ALIGN16(d,nt) \
 	{int bytes = 16; \
-	int align = ((ulong)(void*)d)%bytes; \
+	int align = ((unsigned long)(void*)d)%bytes; \
 	if (align) {_L_;post("%s(%s): Alignment Warning: %s=%p is not %d-aligned: %d", \
 		ARGS(this), __PRETTY_FUNCTION__,#d,(void*)d,bytes,align);}}
 



More information about the Gridflow-cvs mailing list