Make lrint more correct. Closes #1265.
Merge pull request #1266 from int3/fix-lrint

Make lrint more correct. Closes #1265.