Convert the property list values into int32_t to support the larger property values when an int is 8-bit or 16-bit. (#1145)
This commit is contained in:
@@ -57,7 +57,7 @@ static write_property_function Write_Property_Internal_Callback;
|
||||
|
||||
/* These arrays are used by the ReadPropertyMultiple handler
|
||||
property-list property (as of protocol-revision 14) */
|
||||
static const int Channel_Properties_Required[] = {
|
||||
static const int32_t Channel_Properties_Required[] = {
|
||||
PROP_OBJECT_IDENTIFIER,
|
||||
PROP_OBJECT_NAME,
|
||||
PROP_OBJECT_TYPE,
|
||||
@@ -72,9 +72,9 @@ static const int Channel_Properties_Required[] = {
|
||||
-1
|
||||
};
|
||||
|
||||
static const int Channel_Properties_Optional[] = { -1 };
|
||||
static const int32_t Channel_Properties_Optional[] = { -1 };
|
||||
|
||||
static const int Channel_Properties_Proprietary[] = { -1 };
|
||||
static const int32_t Channel_Properties_Proprietary[] = { -1 };
|
||||
|
||||
/**
|
||||
* Returns the list of required, optional, and proprietary properties.
|
||||
@@ -88,7 +88,9 @@ static const int Channel_Properties_Proprietary[] = { -1 };
|
||||
* BACnet proprietary properties for this object.
|
||||
*/
|
||||
void Channel_Property_Lists(
|
||||
const int **pRequired, const int **pOptional, const int **pProprietary)
|
||||
const int32_t **pRequired,
|
||||
const int32_t **pOptional,
|
||||
const int32_t **pProprietary)
|
||||
{
|
||||
if (pRequired) {
|
||||
*pRequired = Channel_Properties_Required;
|
||||
|
||||
Reference in New Issue
Block a user