From de2c3f033abbf072d64a7aa17dded00ef5dd64c7 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Tue, 7 Nov 2023 19:56:52 -0500 Subject: [PATCH] Make WT_foo defines unsigned These are meant to be 'cwt' values and directly comparable to a particular pm->cwt, which is an unsigned short. My concern here was signed/unsigned comparison warnings like the one fixed in 1538b40, but I'm not sure if this is actually necessary: there is already a comparison between cwt and WT_HUMAN in max_mon_load() which apparently doesn't produce the warning... --- include/permonst.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/permonst.h b/include/permonst.h index cbb507e64..9b71c5f69 100644 --- a/include/permonst.h +++ b/include/permonst.h @@ -30,9 +30,9 @@ struct attack { /* Weight of human body, elf, dragon */ -#define WT_HUMAN 1450 -#define WT_ELF 800 -#define WT_DRAGON 4500 +#define WT_HUMAN 1450U +#define WT_ELF 800U +#define WT_DRAGON 4500U #ifndef ALIGN_H #include "align.h"