Use explicit cast to change character type.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 19 Jul 2005 04:26:46 +0000 (04:26 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 19 Jul 2005 04:26:46 +0000 (04:26 +0000)
src/lib/kernel/hash.c

index 93813c08afc694030ee056ac760f43c942030038..3eda885383b7d396670b5a6f78dfc9e72af8ddf2 100644 (file)
@@ -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);