aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-07 17:15:16 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-15 14:02:04 -0400
commit37572bc2174432df133a8d2fed2cded0a4fcbd54 (patch)
tree47ddb0a528ded6faa399974a459f483986f88ad0 /src
parent233adfe66026a3968f50333d2a48c954356e9786 (diff)
downloadkutter-37572bc2174432df133a8d2fed2cded0a4fcbd54.tar.gz
kutter-37572bc2174432df133a8d2fed2cded0a4fcbd54.tar.xz
kutter-37572bc2174432df133a8d2fed2cded0a4fcbd54.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index a5306f3b..6ddd7eb7 100644
--- a/src/command.c
+++ b/src/command.c
@@ -144,7 +144,7 @@ _sendf(uint8_t parserid, ...)
case PT_uint16:
case PT_int16:
case PT_byte:
- if (t >= PT_uint16)
+ if (sizeof(v) > sizeof(int) && t >= PT_uint16)
if (t == PT_int16)
v = (int32_t)va_arg(args, int);
else