diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/chilbert_svg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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("<svg xmlns='http://www.w3.org/2000/svg'" |