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 11dist : trusty
22sudo : 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
313before_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 {
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 }
You can’t perform that action at this time.
0 commit comments