/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
* 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.