From 67cfdf6843a735d2632c9ca8a2ca56bb019ccd8e Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 12 Oct 2024 14:56:36 -0400 Subject: [PATCH] get rid of a static analyzer warning src/pager.c(696): warning: Reading invalid data from 'def_warnsyms' --- include/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/display.h b/include/display.h index 24db18e91..fc52eac41 100644 --- a/include/display.h +++ b/include/display.h @@ -728,7 +728,7 @@ enum glyph_offsets { #define glyph_to_explosion(glyph) \ (glyph_is_explosion(glyph) ? (((glyph) - GLYPH_EXPLODE_OFF) % (S_expl_br - S_expl_tl + 1)) : 0) #define glyph_to_warning(glyph) \ - (glyph_is_warning(glyph) ? ((glyph) - GLYPH_WARNING_OFF) : NO_GLYPH) + (glyph_is_warning(glyph) ? ((glyph) - GLYPH_WARNING_OFF) : 0) /* * Return true if the given glyph is what we want. Note that bodies are