ints aren't necessarily two bytes long!
authorDavid Given <dg@cowlark.com>
Tue, 19 Jan 2016 22:45:54 +0000 (23:45 +0100)
committerDavid Given <dg@cowlark.com>
Tue, 19 Jan 2016 22:45:54 +0000 (23:45 +0100)
Applications/V7/games/wump.c

index de55f26..d825ab1 100644 (file)
@@ -238,7 +238,7 @@ int main(int argc, char *argv[])
                                if (p->tunn[j] == p->tunn[k])
                                        goto init;
                }
-               qsort(&p->tunn[0], NTUNN, 2, icomp);
+               qsort(&p->tunn[0], NTUNN, sizeof(int), icomp);
                p++;
        }