You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/11/10 19:06:59 UTC

[lucy-commits] [2/2] git commit: refs/heads/msvc6 - Make uint64_t to double conversion check actually work

Make uint64_t to double conversion check actually work


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

Branch: refs/heads/msvc6
Commit: 308cf3cfb4000a21608b7af83cc13df55767cc2f
Parents: baaf13b
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Nov 10 19:00:42 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat Nov 10 19:00:42 2012 +0100

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


http://git-wip-us.apache.org/repos/asf/lucy/blob/308cf3cf/charmonizer/src/Charmonizer/Probe/Integers.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe/Integers.c b/charmonizer/src/Charmonizer/Probe/Integers.c
index 2e75c36..15f4326 100644
--- a/charmonizer/src/Charmonizer/Probe/Integers.c
+++ b/charmonizer/src/Charmonizer/Probe/Integers.c
@@ -68,6 +68,7 @@ static const char chaz_Integers_u64_to_double_code[] =
     CHAZ_QUOTE(      double float_num;                     )
     CHAZ_QUOTE(      Charm_Setup;                          )
     CHAZ_QUOTE(      float_num = (double)int_num;          )
+    CHAZ_QUOTE(      printf("%%f\n", float_num);           )
     CHAZ_QUOTE(      return 0;                             )
     CHAZ_QUOTE(  }                                         );
 
@@ -214,9 +215,7 @@ chaz_Integers_run(void) {
 
     /* Determine whether conversion of unsigned __int64 to double works */
     if (has___int64) {
-        output = chaz_CC_capture_output(chaz_Integers_u64_to_double_code,
-                                        &output_len);
-        if (output == NULL) {
+        if (!chaz_CC_test_compile(chaz_Integers_u64_to_double_code)) {
             can_convert_u64_to_double = false;
         }
     }