diff options
| author | Eugen Wissner <belka@caraus.de> | 2018-01-04 05:36:46 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2018-01-04 05:36:46 +0100 |
| commit | 8db1851c5ce4c74676e38c822f8678aaba421a3c (patch) | |
| tree | 42e6701f007c9fdfc8f5c791ec9d5198d1093b80 | |
| parent | 12de700706c0ef69b4257f91b736b4d1b5aa5151 (diff) | |
| download | tanya-8db1851c5ce4c74676e38c822f8678aaba421a3c.tar.gz | |
Update dmd to 2.078.0
| -rw-r--r-- | .travis.yml | 3 | ||||
| -rw-r--r-- | README.md | 7 | ||||
| -rw-r--r-- | appveyor.yml | 6 | ||||
| -rw-r--r-- | source/tanya/container/string.d | 3 | ||||
| -rw-r--r-- | source/tanya/math/mp.d | 6 |
5 files changed, 17 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 325f3eb..76182e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ os: language: d d: + - dmd-2.078.0 - dmd-2.077.1 - dmd-2.076.1 @@ -21,7 +22,7 @@ addons: - gcc-multilib before_script: - - if [ "$PS1" = '(dmd-2.077.1)' ]; then + - if [ "$PS1" = '(dmd-2.078.0)' ]; then export UNITTEST="unittest-cov"; fi @@ -149,7 +149,8 @@ There are more containers in the `tanya.container` package. | DMD | GCC | |:-------:|:--------------:| -| 2.077.0 | *gdc-5* branch | +| 2.078.0 | *gdc-5* branch | +| 2.077.1 | | | 2.076.1 | | ### Current status @@ -163,9 +164,7 @@ Following modules are under development: ### Release management -3-week release cycle. - -Deprecated features are removed after one release (in approximately 6 weeks after deprecating). +Deprecated features are removed after one release that includes these deprecations. ## Further characteristics diff --git a/appveyor.yml b/appveyor.yml index 57088ba..1206e78 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,6 +4,12 @@ os: Visual Studio 2015 environment: matrix: - DC: dmd + DVersion: 2.078.0 + arch: x64 + - DC: dmd + DVersion: 2.078.0 + arch: x86 + - DC: dmd DVersion: 2.077.1 arch: x64 - DC: dmd diff --git a/source/tanya/container/string.d b/source/tanya/container/string.d index 73aab41..1b95cfd 100644 --- a/source/tanya/container/string.d +++ b/source/tanya/container/string.d @@ -264,7 +264,8 @@ if (is(Unqual!E == char)) body { dchar chr; - ubyte units, mask; + ubyte units; + int mask; const(char)* it = this.begin; if (*it & 0x80) diff --git a/source/tanya/math/mp.d b/source/tanya/math/mp.d index a045b25..f062c47 100644 --- a/source/tanya/math/mp.d +++ b/source/tanya/math/mp.d @@ -393,7 +393,9 @@ struct Integer T opCast(T)() const if (isIntegral!T && isSigned!T) { - return this.sign ? -(cast(Unsigned!T) this) : cast(Unsigned!T) this; + return this.sign + ? cast(T) -(cast(Promoted!(Unsigned!T)) (cast(Unsigned!T) this)) + : cast(Unsigned!T) this; } /// @@ -1072,7 +1074,7 @@ struct Integer assert(h1 == 79); h2 = ~h1; - assert(h2 == ~cast(ubyte) 79); + assert(h2 == cast(ubyte) ~79); } /// ditto |
