LIMIT_TO_RANGE_INT macro and various casts.

This commit is contained in:
nhkeni
2022-03-16 17:59:23 -04:00
parent 81b014977d
commit e51026aee1
5 changed files with 13 additions and 4 deletions

View File

@@ -2894,7 +2894,7 @@ create_particular_parse(char* str, struct _create_particular_data* d)
char *bufp = str;
char *tmpp;
d->quan = 1 + ((g.multi > 0) ? g.multi : 0);
d->quan = 1 + ((g.multi > 0) ? (int) g.multi : 0);
d->monclass = MAXMCLASSES;
d->which = g.urole.mnum; /* an arbitrary index into mons[] */
d->fem = -1; /* gender not specified */