From 87e2dfb9afb22679c5c41c2fb44a8da2698a5ba7 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Thu, 25 Sep 2003 05:29:14 +0000 Subject: [PATCH] (unw_regname): Fix signed/unsigned comparison. (Logical change 1.104) --- src/x86/regname-x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86/regname-x86.c b/src/x86/regname-x86.c index 8e7f5ca9..fbbcd55c 100644 --- a/src/x86/regname-x86.c +++ b/src/x86/regname-x86.c @@ -8,7 +8,7 @@ static const char *regname[] = const char * unw_regname (unw_regnum_t reg) { - if (reg < NELEMS (regname)) + if (reg < (unw_regnum_t) NELEMS (regname)) return regname[reg]; else return "???";