Skip to content

Commit bc38b65

Browse files
committed
Travis
1 parent 64a5efb commit bc38b65

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.travis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
dist: trusty
22
sudo: required
3+
addons:
4+
apt:
5+
sources:
6+
- ubuntu-toolchain-r-test
7+
packages:
8+
- wget
9+
- pkg-config
10+
- libboost-dev
11+
- libgmp-dev
12+
- g++-7
313
before_install:
4-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
5-
- sudo apt-get update -qq
6-
- sudo apt-get install -y make g++-4.9 libboost-dev libgmp-dev flexc++ bisonc++
7-
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
8-
- pip install --user cpp-coveralls
9-
script: ./bootstrap && make coverage
10-
after_success:
11-
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'
14+
- wget https://github.com/bazelbuild/bazel/releases/download/0.15.0/bazel_0.15.0-linux-x86_64.deb
15+
- sudo dpkg -i bazel_0.15.0-linux-x86_64.deb
16+
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
17+
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
18+
script:
19+
- bazel build checktestdata

value.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Value Value::negate() const {
99
} else if constexpr (is_integral<T>) {
1010
if (v >= std::numeric_limits<int64_t>::min() + 1 &&
1111
-v >= std::numeric_limits<int64_t>::min()) {
12-
return Value{int64_t{-v}};
12+
return Value{int64_t{T{-v}}};
1313
} else {
1414
return Value{-integer{v}};
1515
}

0 commit comments

Comments
 (0)