From 7859dde7eee39cff0fbd31146680baedc1593b2a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 19 May 2009 02:42:13 +0000 Subject: cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. (cplus_demangle_fill_dtor): Likewise. Co-Authored-By: Ben Elliston From-SVN: r147699 --- libiberty/cp-demangle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libiberty/cp-demangle.c') diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index b02f9bb..4f309ef 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -719,8 +719,8 @@ cplus_demangle_fill_ctor (struct demangle_component *p, { if (p == NULL || name == NULL - || (kind < gnu_v3_complete_object_ctor - && kind > gnu_v3_complete_object_allocating_ctor)) + || (int) kind < gnu_v3_complete_object_ctor + || (int) kind > gnu_v3_complete_object_allocating_ctor) return 0; p->type = DEMANGLE_COMPONENT_CTOR; p->u.s_ctor.kind = kind; @@ -738,8 +738,8 @@ cplus_demangle_fill_dtor (struct demangle_component *p, { if (p == NULL || name == NULL - || (kind < gnu_v3_deleting_dtor - && kind > gnu_v3_base_object_dtor)) + || (int) kind < gnu_v3_deleting_dtor + || (int) kind > gnu_v3_base_object_dtor) return 0; p->type = DEMANGLE_COMPONENT_DTOR; p->u.s_dtor.kind = kind; -- cgit v1.1