Explicitly cast 32-bit values in cmd_patch

This commit is contained in:
HummyPkg 2019-03-08 08:04:06 +00:00
parent 297f581bde
commit 161b1bfdf7
1 changed files with 2 additions and 2 deletions

4
cmd.c
View File

@ -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);