From 10d78bdc65fc821fee4dcafbfae6087e9d4caac9 Mon Sep 17 00:00:00 2001 From: Andrey Penechko Date: Thu, 25 Jan 2018 16:48:31 +0200 Subject: [PATCH] Add fresh versions of compilers to travis. Fix `integral promotion not done` deprecation in 2.078. --- .travis.yml | 3 +++ cbor.d | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4a0a80a..669150c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ os: language: d d: + - dmd-2.078.1 - dmd-2.077.0 - dmd-2.076.1 - dmd-2.075.1 @@ -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 diff --git a/cbor.d b/cbor.d index b064fcd..862845f 100644 --- a/cbor.d +++ b/cbor.d @@ -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. @@ -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;