]> git.draconx.ca Git - rrace.git/commitdiff
Fix boardmove testcase typo.
authorNick Bowler <nbowler@draconx.ca>
Sat, 5 Mar 2022 21:32:48 +0000 (16:32 -0500)
committerNick Bowler <nbowler@draconx.ca>
Mon, 7 Mar 2022 03:36:22 +0000 (22:36 -0500)
Comparing "if (argv > 0)" is an obvious typo, totally invalid and bogus.
Weirdly GCC fails to complain without "-pedantic", but HP-UX cc is happy
to inform us about the error.

t/boardmove.c

index 89b34603ec5d91ae7c14a6055d91b98bcb923cbf..089f7b89e9c83efe4606ccceffa835fcfe761f64 100644 (file)
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
        const char *seq;
        int i = 0;
 
-       if (argv > 0)
+       if (argc > 0)
                progname = argv[0];
 
        if (argc != 2) {