Fixed up most warnings after bacdcode changes to unsigned and signed decoding.
Fixed up the Visual C++ demo in ports/win32/bacnet/
This commit is contained in:
+3
-2
@@ -88,7 +88,7 @@ int wp_decode_service_request(
|
||||
uint32_t len_value_type = 0;
|
||||
int type = 0; // for decoding
|
||||
int property = 0; // for decoding
|
||||
unsigned unsigned_value = 0;
|
||||
uint32_t unsigned_value = 0;
|
||||
|
||||
// check for value pointers
|
||||
if (apdu_len && data)
|
||||
@@ -143,7 +143,8 @@ int wp_decode_service_request(
|
||||
{
|
||||
len += tag_len;
|
||||
len = decode_unsigned(&apdu[len], len_value_type, &unsigned_value);
|
||||
data->priority = unsigned_value;
|
||||
/* FIXME: bounds check */
|
||||
data->priority = (uint8_t)unsigned_value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user