aboutsummaryrefslogtreecommitdiff
path: root/gdb/objc-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r--gdb/objc-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index f306b94..a27ff68 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -1528,7 +1528,7 @@ print_object_command (char *args, int from_tty)
struct value *object, *function, *description;
CORE_ADDR string_addr, object_addr;
int i = 0;
- char c = -1;
+ gdb_byte c = 0;
if (!args || !*args)
error (
@@ -1560,7 +1560,7 @@ print_object_command (char *args, int from_tty)
error (_("object returns null description"));
read_memory (string_addr + i++, &c, 1);
- if (c != '\0')
+ if (c != 0)
do
{ /* Read and print characters up to EOS. */
QUIT;