You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/03/02 12:15:35 UTC

[lucy-commits] svn commit: r1076170 - /incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c

Author: marvin
Date: Wed Mar  2 11:15:35 2011
New Revision: 1076170

URL: http://svn.apache.org/viewvc?rev=1076170&view=rev
Log:
Add a cast in TestNum.c to quiet an MSVC loss-of-precision warning.

Modified:
    incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c

Modified: incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c?rev=1076170&r1=1076169&r2=1076170&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c (original)
+++ incubator/lucy/trunk/core/Lucy/Test/Object/TestNum.c Wed Mar  2 11:15:35 2011
@@ -76,7 +76,7 @@ test_accessors(TestBatch *batch)
     TEST_TRUE(batch, Float32_To_I64(f32) == 1, "Float32_To_I64");
     TEST_TRUE(batch, Float64_To_I64(f64) == 1, "Float64_To_I64");
 
-    got32 = Float32_To_F64(f32);
+    got32 = (float)Float32_To_F64(f32);
     TEST_TRUE(batch, *(int32_t*)&got32 == *(int32_t*)&wanted32, 
         "Float32_To_F64");