summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/itest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/itest.c b/cmd/itest.c
index fb4d797e43d..60626c7fe9c 100644
--- a/cmd/itest.c
+++ b/cmd/itest.c
@@ -65,13 +65,13 @@ static long evalexp(char *s, int w)
}
switch (w) {
case 1:
- l = (long)(*(unsigned char *)buf);
+ l = (long)(*(u8 *)buf);
break;
case 2:
- l = (long)(*(unsigned short *)buf);
+ l = (long)(*(u16 *)buf);
break;
case 4:
- l = (long)(*(unsigned long *)buf);
+ l = (long)(*(u32 *)buf);
break;
}
unmap_physmem(buf, w);