Merge change I86898f45 into eclair

* changes:
  Fix BigInteger math bugs.