changeset 297:bd10af062702

Reverse order of checks.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Feb 2016 16:41:58 +0200
parents ec8357d02a52
children 86fe17a2ed81
files th_string.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;