From 5dff0a4139164bca303691305ad35e7dd06c1a10 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 26 Aug 2018 14:40:39 +0200 Subject: Fix warning --- bin/chilbert_svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/chilbert_svg.cpp b/bin/chilbert_svg.cpp index 7c63042..1151a1a 100644 --- a/bin/chilbert_svg.cpp +++ b/bin/chilbert_svg.cpp @@ -38,7 +38,7 @@ main(int argc, char** argv) } const uint32_t w = - uint32_t(sqrt(1 << uint32_t(ceil(log2(num_points))))) - 1; + uint32_t(sqrt(1 << uint32_t(ceil(log2(double(num_points)))))) - 1; // Header printf("