aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-02-22 15:13:26 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-02-22 15:13:26 +0000
commitfef862e5feb0560292cdf3a4406408833340f3d7 (patch)
tree8bd2aef284be66c664f36f5ea2e0c973b79e83f8 /gdb/valops.c
parent919e35ed897b72ff56079592b6ac938cda98f144 (diff)
downloadgdb-fef862e5feb0560292cdf3a4406408833340f3d7.zip
gdb-fef862e5feb0560292cdf3a4406408833340f3d7.tar.gz
gdb-fef862e5feb0560292cdf3a4406408833340f3d7.tar.bz2
* valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index a3bae6d..51304be 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -934,7 +934,7 @@ value_ind (struct value *arg1)
BUILTIN_TYPE_LONGEST would seem to be a mistake. */
if (TYPE_CODE (base_type) == TYPE_CODE_INT)
return value_at_lazy (builtin_type_int,
- (CORE_ADDR) value_as_long (arg1));
+ (CORE_ADDR) value_as_address (arg1));
else if (TYPE_CODE (base_type) == TYPE_CODE_PTR)
{
struct type *enc_type;