ethereum/go-ethereum — pull request #2 by vessenes (2014-01-10 05:26:49+00:00)
Title: fix N being overwritten by BigInt.Div functionality

Div modifies the object that calls it as well as returns the result. N was being overwritten with the div result and eventually (quickly) went to zero.

I'm not super savvy to go, so there may be a more canonical way to do this, like e.g. calling dag.xn.Div, which didn't work for me. In this case, though, pow is not used again in the function and seemed safe to overwrite.