projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee87ee0
)
Use explicit cast to change character type.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 19 Jul 2005 04:26:46 +0000
(
04:26
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 19 Jul 2005 04:26:46 +0000
(
04:26
+0000)
src/lib/kernel/hash.c
patch
|
blob
|
history
diff --git
a/src/lib/kernel/hash.c
b/src/lib/kernel/hash.c
index 93813c08afc694030ee056ac760f43c942030038..3eda885383b7d396670b5a6f78dfc9e72af8ddf2 100644
(file)
--- a/
src/lib/kernel/hash.c
+++ b/
src/lib/kernel/hash.c
@@
-210,7
+210,7
@@
hash_bytes (const void *buf_, size_t size)
unsigned
hash_string (const char *s_)
{
- const unsigned char *s = s_;
+ const unsigned char *s =
(const unsigned char *)
s_;
unsigned hash;
ASSERT (s != NULL);