# HG changeset patch # User Matti Hamalainen # Date 1456152118 -7200 # Node ID bd10af0627022463276804de3318a6a738a68e45 # Parent ec8357d02a52f6d6a45b09b6d8468a5e67223944 Reverse order of checks. diff -r ec8357d02a52 -r bd10af062702 th_string.c --- a/th_string.c Mon Feb 22 16:06:13 2016 +0200 +++ b/th_string.c Mon Feb 22 16:41:58 2016 +0200 @@ -149,7 +149,7 @@ return EOF; // Check for negative value - if (pval < 0 && !unsig) + if (!unsig && pval < 0) { neg = TRUE; pval = -pval;