File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
dist : trusty
2
2
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
3
13
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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Value Value::negate() const {
9
9
} else if constexpr (is_integral<T>) {
10
10
if (v >= std::numeric_limits<int64_t >::min () + 1 &&
11
11
-v >= std::numeric_limits<int64_t >::min ()) {
12
- return Value{int64_t {-v }};
12
+ return Value{int64_t {T{-v} }};
13
13
} else {
14
14
return Value{-integer{v}};
15
15
}
You can’t perform that action at this time.
0 commit comments