Revision: 54479
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54479&view=rev
Author:   r_weiss
Date:     2013-02-25 23:08:14 +0000 (Mon, 25 Feb 2013)
Log Message:
-----------
Update to prevent problems with 64bit windows since 'sum' can be a value as 
large as a pointer value.

Modified Paths:
--------------
    brlcad/trunk/include/raytrace.h

Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h     2013-02-25 23:05:48 UTC (rev 54478)
+++ brlcad/trunk/include/raytrace.h     2013-02-25 23:08:14 UTC (rev 54479)
@@ -778,9 +778,9 @@
 #define        RT_DBNHASH              1024    /**< @brief size of hash table 
*/
 
 #if    ((RT_DBNHASH)&((RT_DBNHASH)-1)) != 0
-#define        RT_DBHASH(sum)  ((unsigned)(sum) % (RT_DBNHASH))
+#define        RT_DBHASH(sum)  ((size_t)(sum) % (RT_DBNHASH))
 #else
-#define        RT_DBHASH(sum)  ((unsigned)(sum) & ((RT_DBNHASH)-1))
+#define        RT_DBHASH(sum)  ((size_t)(sum) & ((RT_DBNHASH)-1))
 #endif
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to