C89 fix

Project: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/commit/78e99849
Tree: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/tree/78e99849
Diff: http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/diff/78e99849

Branch: refs/heads/master
Commit: 78e9984999bb1c38b950820aeaee600fe1aa13c3
Parents: ac5c8ee
Author: Nick Wellnhofer <[email protected]>
Authored: Mon May 16 18:28:06 2016 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Mon May 16 18:28:06 2016 +0200

----------------------------------------------------------------------
 src/Charmonizer/Probe/Integers.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-charmonizer/blob/78e99849/src/Charmonizer/Probe/Integers.c
----------------------------------------------------------------------
diff --git a/src/Charmonizer/Probe/Integers.c b/src/Charmonizer/Probe/Integers.c
index b40d057..f894eed 100644
--- a/src/Charmonizer/Probe/Integers.c
+++ b/src/Charmonizer/Probe/Integers.c
@@ -266,10 +266,11 @@ chaz_Integers_run(void) {
 
         for (i = 0; options[i] != NULL; i++) {
             /* Try to print 2**64-1, and see if we get it back intact. */
+            int success;
             sprintf(code_buf, format_64_code, options[i], u64_t_postfix);
             output = chaz_CC_capture_output(code_buf, &output_len);
-            int success = output != NULL
-                          && strcmp(output, "18446744073709551615") == 0;
+            success = output != NULL
+                      && strcmp(output, "18446744073709551615") == 0;
             free(output);
 
             if (success) {

Reply via email to