From 1760d9d58004f209979ade8c4d48993cfd8372be Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 26 Dec 2007 12:36:18 +0000 Subject: * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion. --- gdb/dwarf2read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/dwarf2read.c') diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index e47ef93..689c53f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -5007,11 +5007,11 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) type_flags |= TYPE_FLAG_UNSIGNED; break; case DW_ATE_signed_char: - if (cu->language == language_ada && cu->language == language_m2) + if (cu->language == language_ada || cu->language == language_m2) code = TYPE_CODE_CHAR; break; case DW_ATE_unsigned_char: - if (cu->language == language_ada && cu->language == language_m2) + if (cu->language == language_ada || cu->language == language_m2) code = TYPE_CODE_CHAR; type_flags |= TYPE_FLAG_UNSIGNED; break; -- cgit v1.1