diff options
author | Pedro Alves <palves@redhat.com> | 2013-04-19 15:24:55 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-04-19 15:24:55 +0000 |
commit | 51a5cd9059b96a2ac33cf149d369db12b891fd96 (patch) | |
tree | f5e5827454ba1b61f62888034c4832bc0c37b182 /gdb/c-lang.c | |
parent | a993366103a671e95f5721e5517f8a68149d4d0a (diff) | |
download | gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.zip gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.tar.gz gdb-51a5cd9059b96a2ac33cf149d369db12b891fd96.tar.bz2 |
Cast result of obstack_base to gdb_byte * in a couple spots.
obstack_base returns char *. Need to cast to gdb_byte * in a couple spots.
gdb/
2013-04-19 Pedro Alves <palves@redhat.com>
* c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
gdb_byte *.
* linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 6f9d392..48a1fb0 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -658,7 +658,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, if (obstack_object_size (&output) != TYPE_LENGTH (type)) error (_("Could not convert character " "constant to target character set")); - value = unpack_long (type, obstack_base (&output)); + value = unpack_long (type, (gdb_byte *) obstack_base (&output)); result = value_from_longest (type, value); } else |