bug in the tarval modul ...
[libfirm] / ir / be / test / fehler31.c
index 1681718..ea42722 100644 (file)
@@ -1,8 +1,9 @@
 #include <stdlib.h>
+#include <stdio.h>
 
 static unsigned hash_ptr(const void *ptr)
 {
-       unsigned ptr_int = (ptr - NULL);
+       unsigned ptr_int = ((const char*) ptr - (const char*) NULL);
        return ptr_int >> 3;
 }