From: nhkeni Date: Thu, 17 Mar 2022 20:56:25 +0000 (-0400) Subject: Make pointer differenace a long. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f3063df016c8ec8844bc725c0c7c1d70f5af976;p=nethack Make pointer differenace a long. --- diff --git a/src/o_init.c b/src/o_init.c index 143db6170..251bb13e4 100644 --- a/src/o_init.c +++ b/src/o_init.c @@ -614,7 +614,8 @@ dodiscovered(void) /* free after Robert Viduya */ char *s, *p, oclass, prev_class, classes[MAXOCLASSES], buf[BUFSZ], *sorted_lines[NUM_OBJECTS]; /* overkill */ - int i, j, sortindx, dis, ct, uniq_ct, arti_ct, sorted_ct; + int i, j, dis, ct, uniq_ct, arti_ct, sorted_ct; + long sortindx; // should be ptrdiff_t, but we don't require that exists boolean alphabetized, alphabyclass, lootsort; if (!flags.discosort || !(p = index(disco_order_let, flags.discosort)))