[Gridflow-cvs] [svn] commit: r5586 - /trunk/src/number.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed May 5 15:15:38 EDT 2010


Author: matju
Date: Wed May  5 15:15:38 2010
New Revision: 5586

Log:
remove warning and perhaps a bug (?)

Modified:
    trunk/src/number.cxx

Modified: trunk/src/number.cxx
==============================================================================
--- trunk/src/number.cxx (original)
+++ trunk/src/number.cxx Wed May  5 15:15:38 2010
@@ -187,7 +187,7 @@
 DEF_OP(sub,  a-b, 0, side==at_right && x==0, false)
 DEF_OP(bus,  b-a, 0, side==at_left  && x==0, false)
 DEF_OP(mul,  a*b, 1, x==1, x==0)
-DEF_OP(mulshr8, (a*b)>>8, 256, x==256, x==0)
+DEF_OP(mulshr8, (a*b)>>8, T(256), sizeof(T)!=1 && x==T(256), x==0)
 DEF_OP(div,  b==0 ? (T)0 :      a/b , 1, side==at_right && x==1, false)
 DEF_OP(div2, b==0 ?    0 : div2(a,b), 1, side==at_right && x==1, false)
 DEF_OP(vid,  a==0 ? (T)0 :      b/a , 1, side==at_left  && x==1, false)



More information about the Gridflow-cvs mailing list