Revision: 76816
http://sourceforge.net/p/brlcad/code/76816
Author: starseeker
Date: 2020-08-17 12:50:54 +0000 (Mon, 17 Aug 2020)
Log Message:
-----------
revert r76808 - github runner didn't like that approach either...
Modified Paths:
--------------
brlcad/trunk/include/bu/magic.h
Modified: brlcad/trunk/include/bu/magic.h
===================================================================
--- brlcad/trunk/include/bu/magic.h 2020-08-17 03:43:51 UTC (rev 76815)
+++ brlcad/trunk/include/bu/magic.h 2020-08-17 12:50:54 UTC (rev 76816)
@@ -241,8 +241,7 @@
# define BU_CKMAG(_ptr, _magic, _str) (void)(_ptr)
#else
# define BU_CKMAG(_ptr, _magic, _str) do { \
- if (UNLIKELY(( ((uintptr_t)(_ptr) == (uintptr_t)NULL) /* non-NULL pointer
*/ \
- || ((uintptr_t)(_ptr) == 0) /* non-zero pointer */ \
+ if (UNLIKELY(( ((uintptr_t)(_ptr) == 0) /* non-zero pointer */ \
|| ((uintptr_t)(_ptr) & (sizeof((uintptr_t)(_ptr))-1)) /*
aligned ptr */ \
|| (*((const uint32_t *)(_ptr)) != (uint32_t)(_magic)) /*
matches value */ \
))) { \
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits