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:
Steve Karg
2025-11-16 08:34:45 -06:00
committed by GitHub
parent 3ea710f92f
commit e9dd910b55
180 changed files with 1071 additions and 861 deletions
+6 -4
View File
@@ -35,7 +35,7 @@ static COMMAND_DESCR Command_Descr[MAX_COMMANDS];
/* clang-format off */
/* These arrays are used by the ReadPropertyMultiple handler */
static const int Command_Properties_Required[] = {
static const int32_t Command_Properties_Required[] = {
PROP_OBJECT_IDENTIFIER,
PROP_OBJECT_NAME,
PROP_OBJECT_TYPE,
@@ -45,9 +45,9 @@ static const int Command_Properties_Required[] = {
PROP_ACTION,
-1 };
static const int Command_Properties_Optional[] = { -1 };
static const int32_t Command_Properties_Optional[] = { -1 };
static const int Command_Properties_Proprietary[] = { -1 };
static const int32_t Command_Properties_Proprietary[] = { -1 };
/* clang-format on */
/**
@@ -62,7 +62,9 @@ static const int Command_Properties_Proprietary[] = { -1 };
* BACnet proprietary properties for this object.
*/
void Command_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 = Command_Properties_Required;