Skip to content

Commit

Permalink
Add fresh versions of compilers to travis. Fix `integral promotion no…
Browse files Browse the repository at this point in the history
…t done` deprecation in 2.078.
  • Loading branch information
MrSmith33 committed Jan 25, 2018
1 parent dcd8a07 commit 10d78bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ os:
language: d

d:
- dmd-2.078.1
- dmd-2.077.0
- dmd-2.076.1
- dmd-2.075.1
Expand All @@ -16,6 +17,8 @@ d:
- dmd-2.070.2
- dmd-2.069.2
- dmd-2.068.2
- ldc-1.7.0
- ldc-1.6.0
- ldc-1.5.0
- ldc-1.4.0
- ldc-1.3.0
Expand Down
4 changes: 2 additions & 2 deletions cbor.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
Copyright: Copyright (c) 2014-2016 Andrey Penechko.
Copyright: Copyright (c) 2014-2018 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
Expand Down Expand Up @@ -80,7 +80,7 @@ size_t encodeCborInt(R, E)(auto ref R sink, E value)
ubyte majorType;

if (value < 0) {
val = -value - 1;
val = -cast(long)value - 1;
majorType = 1;
} else {
val = value;
Expand Down

0 comments on commit 10d78bd

Please sign in to comment.