Revision: 37537 http://brlcad.svn.sourceforge.net/brlcad/?rev=37537&view=rev Author: bob1961 Date: 2010-02-03 23:37:48 +0000 (Wed, 03 Feb 2010)
Log Message: ----------- Quell a few warnings when compiling for 64-bit Windows. Modified Paths: -------------- brlcad/trunk/include/bu.h Modified: brlcad/trunk/include/bu.h =================================================================== --- brlcad/trunk/include/bu.h 2010-02-03 23:00:17 UTC (rev 37536) +++ brlcad/trunk/include/bu.h 2010-02-03 23:37:48 UTC (rev 37537) @@ -1806,7 +1806,11 @@ # endif # else /* "Conservative" way of finding # bytes as diff of 2 char ptrs */ -# define bu_byteoffset(_i) ((size_t)(((char *)&(_i))-((char *)0))) +# if defined(_WIN32) && !defined(__CYGWIN__) +# define bu_byteoffset(_i) ((long)(((char *)&(_i))-((char *)0))) +# else +# define bu_byteoffset(_i) ((size_t)(((char *)&(_i))-((char *)0))) +# endif # endif # endif # endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits