Make float-not-zero check explicit.

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

Branch: refs/heads/master
Commit: b341575bd4867f87f704f931214d2797912df540
Parents: 48a4d18
Author: Marvin Humphrey <mar...@rectangular.com>
Authored: Thu May 26 18:13:52 2016 -0700
Committer: Marvin Humphrey <mar...@rectangular.com>
Committed: Thu May 26 18:13:52 2016 -0700

----------------------------------------------------------------------
 core/Lucy/Highlight/HeatMap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/b341575b/core/Lucy/Highlight/HeatMap.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Highlight/HeatMap.c b/core/Lucy/Highlight/HeatMap.c
index aa53aea..0d71ef5 100644
--- a/core/Lucy/Highlight/HeatMap.c
+++ b/core/Lucy/Highlight/HeatMap.c
@@ -144,7 +144,7 @@ HeatMap_Flatten_Spans_IMP(HeatMap *self, Vector *spans) {
         dest_tick = 0;
         for (size_t i = 0; i < num_raw_flattened; i++) {
             Span *span = (Span*)Vec_Fetch(flattened, i);
-            if (Span_Get_Weight(span)) {
+            if (Span_Get_Weight(span) != 0.0f) {
                 Vec_Store(flattened, dest_tick++, INCREF(span));
             }
         }

Reply via email to