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
+2 -2
View File
@@ -296,10 +296,10 @@ int bacapp_decode_application_data(
if (tag_len > 0) {
len += tag_len;
value->tag = tag_number;
if (len <= apdu_len_max) {
if ((unsigned)len <= apdu_len_max) {
decode_len =
bacapp_decode_data_len(NULL, tag_number, len_value_type);
if (decode_len <= (apdu_len_max - len)) {
if ((unsigned)decode_len <= (apdu_len_max - len)) {
decode_len = bacapp_decode_data(
&apdu[len], tag_number, len_value_type, value);
if (value->tag != MAX_BACNET_APPLICATION_TAG) {