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