projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up turn_back_am(), panic on unknown arity.
[libfirm]
/
include
/
libfirm
/
adt
/
hashptr.h
diff --git
a/include/libfirm/adt/hashptr.h
b/include/libfirm/adt/hashptr.h
index
03dd108
..
918843e
100644
(file)
--- a/
include/libfirm/adt/hashptr.h
+++ b/
include/libfirm/adt/hashptr.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-65,7
+65,7
@@
static INLINE unsigned firm_fnv_hash_str(const char *data)
* hash a pointer value: Pointer addresses are mostly aligned to 4
* or 8 bytes. So we remove the lowest 3 bits
*/
* hash a pointer value: Pointer addresses are mostly aligned to 4
* or 8 bytes. So we remove the lowest 3 bits
*/
-#define HASH_PTR(ptr) ((
(char *) (ptr) - (char *)0) >> 3
)
+#define HASH_PTR(ptr) ((
unsigned)(((char *) (ptr) - (char *)0) >> 3)
)
/**
* Hash a string.
/**
* Hash a string.