aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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