get rid of a static analyzer warning

src/pager.c(696): warning: Reading invalid data from 'def_warnsyms'
This commit is contained in:
nhmall
2024-10-12 14:56:36 -04:00
parent 10498b1535
commit 67cfdf6843

View File

@@ -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