From 2cabf2332caac61d7f5034071cfbfb766d1f5eba Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 7 Oct 2017 08:03:18 -0700 Subject: [PATCH] fix compiler-found (but trivial) error debian's new compiler rocks. Effected only test code I never use, but still nice to fix. --- xwords4/linux/linuxmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/linux/linuxmain.c b/xwords4/linux/linuxmain.c index a79cc4224..e3ff095e6 100644 --- a/xwords4/linux/linuxmain.c +++ b/xwords4/linux/linuxmain.c @@ -1577,7 +1577,7 @@ parsePair( const char* optarg, XP_U16* min, XP_U16* max ) } else { int intmin, intmax; if ( 2 == sscanf( optarg, "%d:%d", &intmin, &intmax ) ) { - if ( intmin <= intmin ) { + if ( intmin <= intmax ) { *min = intmin; *max = intmax; success = true;