From aaea81c6ac714dcff8e7518d5ad27fab43640c7f Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 18 Apr 2024 23:14:35 -0700 Subject: [PATCH] fix analyzer complaint about testing whether an unsigned value is >= 0. Since there's no chance that it might have a value of NON_PM (-1), just comment out the assertion that was intended to ward off a potential complaint about that. --- src/do_name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/do_name.c b/src/do_name.c index e828bfda0..c1574618a 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -898,7 +898,7 @@ x_monnam( /* 'pm_name' is the base part of most names */ if (do_mappear) { - assert(ismnum(mtmp->mappearance)); + /*assert(ismnum(mtmp->mappearance));*/ pm_name = pmname(&mons[mtmp->mappearance], Mgender(mtmp)); } else { pm_name = mon_pmname(mtmp);