Revision: 69016
          http://sourceforge.net/p/brlcad/code/69016
Author:   brlcad
Date:     2016-10-11 06:48:41 +0000 (Tue, 11 Oct 2016)
Log Message:
-----------
AND op on non-pointer type

Modified Paths:
--------------
    brlcad/trunk/src/libbu/badmagic.c

Modified: brlcad/trunk/src/libbu/badmagic.c
===================================================================
--- brlcad/trunk/src/libbu/badmagic.c   2016-10-11 05:59:38 UTC (rev 69015)
+++ brlcad/trunk/src/libbu/badmagic.c   2016-10-11 06:48:41 UTC (rev 69016)
@@ -35,7 +35,7 @@
     if (UNLIKELY(!(ptr))) {
        snprintf(buf, MAGICBUFSIZ, "ERROR: NULL %s pointer, file %s, line %d\n",
                 str, file, line);
-    } else if (UNLIKELY((ptr) & (sizeof(uintptr_t)-1))) {
+    } else if (UNLIKELY((uintptr_t)(ptr) & (sizeof(uintptr_t)-1))) {
        snprintf(buf, MAGICBUFSIZ, "ERROR: %p mis-aligned %s pointer, file %s, 
line %d\n",
                 (void *)ptr, str, file, line);
     } else if (UNLIKELY(*(ptr) != (uint32_t)(magic))) {

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to