render: Use "long long" instead of "double" for arithmetic.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 25 Nov 2018 06:22:18 +0000 (22:22 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 26 Nov 2018 06:12:37 +0000 (22:12 -0800)
commit8cb4cda216dd0a389a204814e3705ce06c4ba748
treeea2cb80bf3ac9515da658835ea9c01d64583f038
parentb2985cdf32d310e19f8972d7d5d61d9da5f65873
render: Use "long long" instead of "double" for arithmetic.

When I wrote this code in 2010, it seemed reasonable to me to use
floating-point arithmetic to do large integer calculations, because 64-bit
machines were not yet pervasive.  Over 8 years later, 32-bit machines are
now a rarity.  This commit switches types and modernizes the coding style.

This fixed an assertion failure that I was getting mysteriously while
rendering a particular table.  I didn't investigate further because using
integers seemed like a much better idea anyway.
src/output/render.c