From 8482b18ffa76eebac39d3ba907badb7bc7ed32d8 Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 22 May 2012 20:56:37 +0000 Subject: [PATCH] Only changing the all array to unsigned. Others are used with signed. --- bacnet-stack/include/bacdef.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. */