Fix 32-bit accuracy problem
Merge pull request #25 from eheien/master

Fix 32-bit accuracy problem