Avoid minor FP difference in compute_stack.
Closes #167