2007-06-13 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / valops.c
index 1163756cd9ae7d60c7a322f9badf7691e8483404..35f6558f53ca907f297e846716c88d23ffb584db 100644 (file)
@@ -402,7 +402,7 @@ value_cast (struct type *type, struct value *arg2)
         otherwise occur when dealing with a target having two byte
         pointers and four byte addresses.  */
 
-      int addr_bit = TARGET_ADDR_BIT;
+      int addr_bit = gdbarch_addr_bit (current_gdbarch);
 
       LONGEST longest = value_as_long (arg2);
       if (addr_bit < sizeof (LONGEST) * HOST_CHAR_BIT)
This page took 0.037039 seconds and 4 git commands to generate.