From 9ab18525b2338691984160e7d1e482e630ef3105 Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 27 Jan 2005 19:37:03 +0000 Subject: [PATCH] Corrected the decode_is_context_specific function to return a boolean value. --- bacnet-stack/bacdcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/bacdcode.c b/bacnet-stack/bacdcode.c index daaf6b7d..392775d4 100644 --- a/bacnet-stack/bacdcode.c +++ b/bacnet-stack/bacdcode.c @@ -258,7 +258,7 @@ static bool decode_is_extended_value(uint8_t * apdu) // returns the number of apdu bytes consumed bool decode_is_context_specific(uint8_t * apdu) { - return (apdu[0] & BIT3); + return ((apdu[0] & BIT3) == BIT3); } // from clause 20.2.1.3.2 Constructed Data