diff --git a/cmd.c b/cmd.c index d8080d9..353ca14 100644 --- a/cmd.c +++ b/cmd.c @@ -341,10 +341,10 @@ cmd_patch(struct hmt *hmt, char *str) switch(width) { case 8: - patch_byte(hmt, offset, val); + patch_byte(hmt, offset, (uint8_t)val); break; case 16: - patch_uint16(hmt, offset, val); + patch_uint16(hmt, offset, (uint16_t)val); break; case 32: patch_uint32(hmt, offset, val);