command: Only implement 16bit signed conversion on AVR
On regular 32bit machines there is no need to implement explicit signed conversion on 16bit integers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
233adfe660
commit
37572bc217
|
@ -144,7 +144,7 @@ _sendf(uint8_t parserid, ...)
|
||||||
case PT_uint16:
|
case PT_uint16:
|
||||||
case PT_int16:
|
case PT_int16:
|
||||||
case PT_byte:
|
case PT_byte:
|
||||||
if (t >= PT_uint16)
|
if (sizeof(v) > sizeof(int) && t >= PT_uint16)
|
||||||
if (t == PT_int16)
|
if (t == PT_int16)
|
||||||
v = (int32_t)va_arg(args, int);
|
v = (int32_t)va_arg(args, int);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue