Explicitly cast 32-bit values in cmd_patch
This commit is contained in:
parent
297f581bde
commit
161b1bfdf7
4
cmd.c
4
cmd.c
|
@ -341,10 +341,10 @@ cmd_patch(struct hmt *hmt, char *str)
|
||||||
switch(width)
|
switch(width)
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
patch_byte(hmt, offset, val);
|
patch_byte(hmt, offset, (uint8_t)val);
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
patch_uint16(hmt, offset, val);
|
patch_uint16(hmt, offset, (uint16_t)val);
|
||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
patch_uint32(hmt, offset, val);
|
patch_uint32(hmt, offset, val);
|
||||||
|
|
Loading…
Reference in New Issue