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:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user