[PATCH 2/8] winedump: Avoid sign extension in tlb_read_short().
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jul 9 22:41:22 CDT 2018
tlb_read_byte() already behaves this way.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
tools/winedump/tlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/winedump/tlb.c b/tools/winedump/tlb.c
index 5c710360e6..e30761540b 100644
--- a/tools/winedump/tlb.c
+++ b/tools/winedump/tlb.c
@@ -160,7 +160,7 @@ static int tlb_read_int(void)
static int tlb_read_short(void)
{
- const short *ret = tlb_read(sizeof(short));
+ const unsigned short *ret = tlb_read(sizeof(short));
return ret ? *ret : -1;
}
--
2.17.1
More information about the wine-devel
mailing list