From 5f0f3d53e199e0abcc48d384c124247e65b93af7 Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Fri, 13 Dec 2019 18:27:53 +0000
Subject: [PATCH] fix misplaced bracket

---
 src/setup/cmd_line_function_macros.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/setup/cmd_line_function_macros.h b/src/setup/cmd_line_function_macros.h
index c682efbfe..33d0c17c9 100644
--- a/src/setup/cmd_line_function_macros.h
+++ b/src/setup/cmd_line_function_macros.h
@@ -24,7 +24,7 @@
             if(errno)                                                   \
             {                                                           \
                 char errstring[100];                                    \
-                if(strerror_r(errnum,errstring,100))                    \
+                if(strerror_r(errnum,errstring,100)==0)                 \
                 {                                                       \
                     Exit_binary_c(                                      \
                         BINARY_C_UNDER_OR_OVERFLOW,                     \
@@ -48,9 +48,9 @@
                         errnum                                          \
                         );                                              \
                 }                                                       \
-                *((double*) a->pointer) = a->modulate * test;           \
-                __match=TRUE;                                           \
             }                                                           \
+            *((double*) a->pointer) = a->modulate * test;               \
+            __match=TRUE;                                               \
         }                                                               \
         else                                                            \
         {                                                               \
@@ -73,7 +73,7 @@
         if(__match == FALSE)                                            \
         {                                                               \
             Exit_binary_c(BINARY_C_WRONG_ARGUMENT,                      \
-                          "Argument \"%s\" following %s is neither integer not matched an appropriate macro. Please check it!\n", \
+                          "Argument \"%s\" following %s is neither a double precision not matched an appropriate macro. Please check it!\n", \
                           argv[c],                                      \
                           argv[c-1]);                                   \
         }                                                               \
@@ -203,7 +203,7 @@
         if(errno)                                                       \
         {                                                               \
             char errstring[100];                                        \
-            if(strerror_r(errnum,errstring,100))                        \
+            if(strerror_r(errnum,errstring,100)==0)                     \
             {                                                           \
                 Exit_binary_c(                                          \
                     BINARY_C_UNDER_OR_OVERFLOW,                         \
-- 
GitLab