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:
@@ -108,7 +108,7 @@ struct object_data {
|
||||
/* Key List for storing the object data sorted by instance number */
|
||||
static OS_Keylist Object_List;
|
||||
|
||||
static const int Properties_Required[] = {
|
||||
static const int32_t Properties_Required[] = {
|
||||
/* required properties that are supported for this object */
|
||||
PROP_OBJECT_IDENTIFIER,
|
||||
PROP_OBJECT_NAME,
|
||||
@@ -123,11 +123,11 @@ static const int Properties_Required[] = {
|
||||
-1
|
||||
};
|
||||
|
||||
static const int Properties_Optional[] = { PROP_DESCRIPTION, -1 };
|
||||
static const int32_t Properties_Optional[] = { PROP_DESCRIPTION, -1 };
|
||||
|
||||
static const int Properties_Proprietary[] = { -1 };
|
||||
static const int32_t Properties_Proprietary[] = { -1 };
|
||||
|
||||
static const int BACnetARRAY_Properties[] = {
|
||||
static const int32_t BACnetARRAY_Properties[] = {
|
||||
/* standard properties that are arrays for this object */
|
||||
PROP_LOG_BUFFER,
|
||||
PROP_EVENT_TIME_STAMPS,
|
||||
@@ -159,7 +159,9 @@ static bool BACnetARRAY_Property(int object_property)
|
||||
* BACnet proprietary properties for this object.
|
||||
*/
|
||||
void Audit_Log_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 = Properties_Required;
|
||||
|
||||
Reference in New Issue
Block a user