From 030ca56e8b487fc5be722b6af1e56a86d977839a Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Fri, 23 Aug 2019 16:30:38 +0300
Subject: [PATCH] Attempt windows recon fix for pow

---
 applications/reconstruct/src/mls.cu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/reconstruct/src/mls.cu b/applications/reconstruct/src/mls.cu
index 71201a017..e15e51880 100644
--- a/applications/reconstruct/src/mls.cu
+++ b/applications/reconstruct/src/mls.cu
@@ -27,7 +27,7 @@ extern __constant__ HashParams c_hashParams;
  __device__ float colordiffFloat(const uchar4 &pa, const uchar4 &pb) {
 	const float x_2 = pb.x * pb.x + pb.y * pb.y + pb.z * pb.z;
 	const float v_2 = pa.x * pa.x + pa.y * pa.y + pa.z * pa.z;
-	const float xv_2 = pow(pb.x * pa.x + pb.y * pa.y + pb.z * pa.z, 2);
+	const float xv_2 = pow(pb.x * pa.x + pb.y * pa.y + pb.z * pa.z, 2.0f);
 	const float p_2 = xv_2 / v_2;
 	return sqrt(x_2 - p_2);
 }
-- 
GitLab