projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more work on parser
[cparser]
/
type_hash.c
diff --git
a/type_hash.c
b/type_hash.c
index
b3ae801
..
312b8cf
100644
(file)
--- a/
type_hash.c
+++ b/
type_hash.c
@@
-18,7
+18,7
@@
static
unsigned hash_ptr(const void *ptr)
{
- unsigned ptr_int = (
ptr -
NULL);
+ unsigned ptr_int = (
(char*) ptr - (char*)
NULL);
return ptr_int >> 3;
}