mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-16 18:26:05 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user