[phobos] [D-Programming-Language/phobos] 4b1f2f: std.math.pow: change type from `double` to `real` ...

GitHub via phobos phobos at puremagic.com
Tue Mar 29 12:01:14 PDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 4b1f2f0147cfa8a6fed9bc9830f72060024d305d
      https://github.com/D-Programming-Language/phobos/commit/4b1f2f0147cfa8a6fed9bc9830f72060024d305d
  Author: Johan Engelen <johan at tostiband.nl>
  Date:   2016-03-20 (Sun, 20 Mar 2016)

  Changed paths:
    M std/math.d

  Log Message:
  -----------
  std.math.pow: change type from `double` to `real` for internal variable.

This change fixes a unittest failure with LDC with optimizations on. Note that the return type of `impl` is `real` (not `Float`) and thus changing the type of `sign` to `real` should not matter / be more correct? I am not sure why `w` on line 6299 is of type `Float`.


  Commit: 15c26cd74bccad3dcff9e6bc77374ac2c5d604c0
      https://github.com/D-Programming-Language/phobos/commit/15c26cd74bccad3dcff9e6bc77374ac2c5d604c0
  Author: Ilya Yaroshenko <ilyayaroshenko at gmail.com>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M std/math.d

  Log Message:
  -----------
  Merge pull request #4101 from JohanEngelen/patch-1

std.math.pow: change type from `double` to `real` for internal variable.


Compare: https://github.com/D-Programming-Language/phobos/compare/d90273a86a21...15c26cd74bcc


More information about the phobos mailing list