From 3478218d728f69d76f43d6915ddc33db2bad99e2 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sun, 6 Oct 2019 13:52:00 +0300 Subject: [PATCH] Minor change --- applications/reconstruct/src/ilw/ilw.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/reconstruct/src/ilw/ilw.cu b/applications/reconstruct/src/ilw/ilw.cu index a171d4889..7c8cb7f30 100644 --- a/applications/reconstruct/src/ilw/ilw.cu +++ b/applications/reconstruct/src/ilw/ilw.cu @@ -182,7 +182,7 @@ __global__ void correspondence_energy_vector_kernel( } } - const float avgweight = contrib/count; + const float avgweight = contrib/(float)count; const float confidence = bestweight - avgweight; if (contrib > 0.0f) { -- GitLab