Bugfix/atmel studio arm compile warnings (#60)

* Cleanup warnings generated by Atmel Studio compiling for SAMD21 ARM

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2020-03-20 16:42:41 -05:00
committed by GitHub
parent f18612f1ec
commit d557522c1f
10 changed files with 20 additions and 28 deletions
+1 -1
View File
@@ -777,7 +777,7 @@ int bacnet_object_id_application_decode(uint8_t *apdu,
if ((len > 0) && (tag_number == BACNET_APPLICATION_TAG_OBJECT_ID)) {
apdu_len = len;
if (apdu_len < apdu_len_max) {
if ((apdu_len_max - apdu_len) >= len_value_type) {
if ((apdu_len_max - (unsigned)apdu_len) >= len_value_type) {
len = bacnet_object_id_decode(
&apdu[len], len_value_type, object_type, object_instance);
if (len > 0) {