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...
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user