diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-05-07 17:15:16 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-05-15 14:02:04 -0400 |
commit | 37572bc2174432df133a8d2fed2cded0a4fcbd54 (patch) | |
tree | 47ddb0a528ded6faa399974a459f483986f88ad0 /src/command.c | |
parent | 233adfe66026a3968f50333d2a48c954356e9786 (diff) | |
download | kutter-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/command.c')
-rw-r--r-- | src/command.c | 2 |
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 |