Merge "gas: explicit cast between pointer and integer of different size." am: 4017c42d6e
am: cbdfd753e1
Change-Id: I4446f2dabbd397ca9afcc0425534a7c8601e4973
diff --git a/binutils-2.27/gas/dwarf2dbg.c b/binutils-2.27/gas/dwarf2dbg.c
index 16e136e..72c954a 100644
--- a/binutils-2.27/gas/dwarf2dbg.c
+++ b/binutils-2.27/gas/dwarf2dbg.c
@@ -44,6 +44,7 @@
#include "dwarf2dbg.h"
#include <filenames.h>
+#include <stdint.h>
#include "hash.h"
@@ -1878,7 +1879,7 @@
strtab->hashtab = hash_new ();
}
- val = (offsetT) hash_find (strtab->hashtab, str);
+ val = (offsetT) (uintptr_t)hash_find (strtab->hashtab, str);
if (val != 0)
return val;
@@ -1896,7 +1897,7 @@
key = xstrdup (str);
val = strtab->next_offset;
- hash_insert (strtab->hashtab, key, (void *) val);
+ hash_insert (strtab->hashtab, key, (void *) (uintptr_t)val);
strtab->strings[strtab->strings_in_use++] = key;
strtab->next_offset += strlen(key) + 1;
return val;