libsmpputil: fix -Wtautological-constant-out-of-range-compare
* 'sizeof(sms->user_data)' evaluates to 256 * 'ud_len' is of type 'uint8_t' and cannot be greater than 256 Change-Id: Ia71a0b6b9421911dc5113782d2f555a640fd90ed
This commit is contained in:
parent
d851b2c029
commit
f09832a395
|
@ -241,7 +241,7 @@ static int submit_to_sms(struct gsm_sms **psms, struct gsm_network *net,
|
|||
}
|
||||
|
||||
if (mode == MODE_7BIT) {
|
||||
uint8_t ud_len = 0, padbits = 0;
|
||||
unsigned int ud_len = 0, padbits = 0;
|
||||
sms->data_coding_scheme = GSM338_DCS_1111_7BIT;
|
||||
if (sms->ud_hdr_ind) {
|
||||
ud_len = *sms_msg + 1;
|
||||
|
|
Loading…
Reference in New Issue