mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
12cdb98b81
commit
7829686a8a
|
@ -4,6 +4,7 @@ vars = Variables()
|
||||||
vars.Add(BoolVariable('DEBUG', 'Set to disable optimizations', 1))
|
vars.Add(BoolVariable('DEBUG', 'Set to disable optimizations', 1))
|
||||||
vars.Add(BoolVariable('PIC', 'Set to 1 for to always generate PIC code', 0))
|
vars.Add(BoolVariable('PIC', 'Set to 1 for to always generate PIC code', 0))
|
||||||
env = Environment(variables = vars)
|
env = Environment(variables = vars)
|
||||||
|
# env.Replace(CXX = "clang++")
|
||||||
|
|
||||||
debug = env['DEBUG']
|
debug = env['DEBUG']
|
||||||
compile_options = {}
|
compile_options = {}
|
||||||
|
|
|
@ -239,7 +239,7 @@ float Detector::sizeOfBlackWhiteBlackRun(int fromX, int fromY, int toX, int toY)
|
||||||
int realY = steep ? x : y;
|
int realY = steep ? x : y;
|
||||||
|
|
||||||
// Does current pixel mean we have moved white to black or vice versa?
|
// 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) {
|
if (state == 2) {
|
||||||
int diffX = x - fromX;
|
int diffX = x - fromX;
|
||||||
int diffY = y - fromY;
|
int diffY = y - fromY;
|
||||||
|
|
Loading…
Reference in a new issue