It wasn't an off by one error, think was rounding error instead

*think*. Still don't know for sure. Perhaps was a different in Lua
versions after all.