From 3525f6b9ec38e35b311d6122f7f69701bacbca88 Mon Sep 17 00:00:00 2001 From: tbrennan3 Date: Thu, 20 Oct 2011 15:36:02 +0000 Subject: [PATCH] Tamp down a warning that appears on 64-bit builds by defining BACNET_ARRAY_ALL as 32 bits' worth of 1s, which is appropriate for its use with all uint32_t fields for propertyArrayIndex, which we now have across the body of code. --- bacnet-stack/include/bacdef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/include/bacdef.h b/bacnet-stack/include/bacdef.h index 4bfc45c4..fe2e29bc 100644 --- a/bacnet-stack/include/bacdef.h +++ b/bacnet-stack/include/bacdef.h @@ -56,7 +56,7 @@ /* large BACnet Object Type */ #define BACNET_MAX_OBJECT (0x3FF) /* Array index 0=size of array, n=array element n, MAX=all array elements */ -#define BACNET_ARRAY_ALL (~0UL) +#define BACNET_ARRAY_ALL 0xFFFFFFFF /* 32-bit MAX, to use with uint32_t */ /* Priority Array for commandable objects */ #define BACNET_NO_PRIORITY 0 #define BACNET_MIN_PRIORITY 1