From 5bb2546efb0a2ab090a47577767a9a395f263f90 Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Thu, 14 Nov 2024 10:09:15 -0600 Subject: [PATCH] Fixed compiler warning in write-group module constant. (#856) --- src/bacnet/write_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bacnet/write_group.c b/src/bacnet/write_group.c index d264b5fb..4017a7a7 100644 --- a/src/bacnet/write_group.c +++ b/src/bacnet/write_group.c @@ -114,13 +114,13 @@ static int write_group_service_group_number_decode( len = bacnet_unsigned_context_decode(apdu, apdu_size, 0, &unsigned_value); if (len > 0) { /* This parameter is an unsigned integer in the - range 1 – 4294967295 that represents the control + range 1 - 4294967295 that represents the control group to be affected by this request. Control group zero shall never be used and shall be reserved. WriteGroup service requests containing a zero value for 'Group Number' shall be ignored.*/ - if ((unsigned_value > 4294967295) || (unsigned_value < 1)) { + if ((unsigned_value > 4294967295UL) || (unsigned_value < 1UL)) { return BACNET_STATUS_ERROR; } if (data) {