diff --git a/bacnet-stack/include/bacdef.h b/bacnet-stack/include/bacdef.h index 8d86c911..df49c8fb 100644 --- a/bacnet-stack/include/bacdef.h +++ b/bacnet-stack/include/bacdef.h @@ -41,10 +41,10 @@ /* largest BACnet Instance Number */ /* Also used as a device instance number wildcard address */ -#define BACNET_MAX_INSTANCE (0x3FFFFFU) +#define BACNET_MAX_INSTANCE (0x3FFFFF) #define BACNET_INSTANCE_BITS 22 /* large BACnet Object Type */ -#define BACNET_MAX_OBJECT (0x3FFU) +#define BACNET_MAX_OBJECT (0x3FF) /* Array index 0=size of array, n=array element n, MAX=all array elements */ /* 32-bit MAX, to use with uint32_t */ #define BACNET_ARRAY_ALL 0xFFFFFFFFU @@ -53,7 +53,7 @@ #define BACNET_MIN_PRIORITY 1 #define BACNET_MAX_PRIORITY 16 -#define BACNET_BROADCAST_NETWORK (0xFFFFU) +#define BACNET_BROADCAST_NETWORK (0xFFFF) /* Any size MAC address should be allowed which is less than or equal to 7 bytes. The IPv6 addresses are planned to be handled outside this area. */