diff --git a/cpp/SConscript b/cpp/SConscript index 29bfea123..6cf9724b2 100644 --- a/cpp/SConscript +++ b/cpp/SConscript @@ -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 = {} diff --git a/cpp/core/src/zxing/qrcode/detector/Detector.cpp b/cpp/core/src/zxing/qrcode/detector/Detector.cpp index 7fc0efe6b..527aadbb0 100644 --- a/cpp/core/src/zxing/qrcode/detector/Detector.cpp +++ b/cpp/core/src/zxing/qrcode/detector/Detector.cpp @@ -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;