projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmd: replace the cast of the memory access to a fixed bit type in itest
[oweals/u-boot.git]
/
cmd
/
itest.c
diff --git
a/cmd/itest.c
b/cmd/itest.c
index fb4d797e43d78b56b4a466a7d086bfcdb20cdf14..60626c7fe9c3d983d247aeee6f89b76548a189b5 100644
(file)
--- a/
cmd/itest.c
+++ b/
cmd/itest.c
@@
-65,13
+65,13
@@
static long evalexp(char *s, int w)
}
switch (w) {
case 1:
}
switch (w) {
case 1:
- l = (long)(*(u
nsigned char
*)buf);
+ l = (long)(*(u
8
*)buf);
break;
case 2:
break;
case 2:
- l = (long)(*(u
nsigned short
*)buf);
+ l = (long)(*(u
16
*)buf);
break;
case 4:
break;
case 4:
- l = (long)(*(u
nsigned long
*)buf);
+ l = (long)(*(u
32
*)buf);
break;
}
unmap_physmem(buf, w);
break;
}
unmap_physmem(buf, w);