freebsd-ports/lang/v8-devel/files/patch-src-liveedit.cc
Sunpoet Po-Chuan Hsieh 550e05b2ad - Fix warnings generated by recent snapshot of Clang 3.7.0, including:
- Printing non-void pointers with %p.
  - Left-shifting negative numbers.

PR:		202534
Submitted by:	dim
2015-09-20 20:18:02 +00:00

11 lines
467 B
C++

--- src/liveedit.cc.orig 2014-06-03 08:52:11 UTC
+++ src/liveedit.cc
@@ -174,7 +174,7 @@ class Differencer {
static const int kDirectionSizeBits = 2;
static const int kDirectionMask = (1 << kDirectionSizeBits) - 1;
- static const int kEmptyCellValue = -1 << kDirectionSizeBits;
+ static const int kEmptyCellValue = -(1 << kDirectionSizeBits);
// This method only holds static assert statement (unfortunately you cannot
// place one in class scope).