avoid a -Wall warning (and remind myself how to override CXX)

git-svn-id: https://zxing.googlecode.com/svn/trunk@1902 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2011-09-02 21:40:29 +00:00
parent 12cdb98b81
commit 7829686a8a
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@ vars = Variables()
vars.Add(BoolVariable('DEBUG', 'Set to disable optimizations', 1))
vars.Add(BoolVariable('PIC', 'Set to 1 for to always generate PIC code', 0))
env = Environment(variables = vars)
# env.Replace(CXX = "clang++")
debug = env['DEBUG']
compile_options = {}

View file

@ -239,7 +239,7 @@ float Detector::sizeOfBlackWhiteBlackRun(int fromX, int fromY, int toX, int toY)
int realY = steep ? x : y;
// Does current pixel mean we have moved white to black or vice versa?
if (!(state == 1 ^ image_->get(realX, realY))) {
if (!((state == 1) ^ image_->get(realX, realY))) {
if (state == 2) {
int diffX = x - fromX;
int diffY = y - fromY;