Open atkinsam opened 11 months ago
Thanks for the nice bug report. I won’t have the right computer access to fix it for a couple of weeks. If you want to try a patch I’d happily take a fix PR that includes a regression test.
I ended up working around this using Rust's i128 type. I'm sure there are nicer ways to be smart about precision, let the user choose, etc. but I didn't have a chance to try that out. Let me know what you think. If you're good with it, I'll create the PR.
https://github.com/goodell/radix-calc/compare/master...atkinsam:radix-calc:fix-overflow-i64
There are some other small unrelated changes in that branch. I disable the "automatically paste to frontmost app" option in Alfred, so the copy+paste message in the option subtitle didn't make sense for my workflow.
The script will panic when large 64-bit values are used. A few examples:
Log output from Alfred: