mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
tweak for a gcc variant
git-svn-id: https://zxing.googlecode.com/svn/trunk@2677 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
2f104277ec
commit
dc7aa461db
|
@ -35,7 +35,6 @@ using std::ostringstream;
|
|||
using std::abs;
|
||||
using std::min;
|
||||
using std::max;
|
||||
using zxing::isnan;
|
||||
using zxing::qrcode::Detector;
|
||||
using zxing::Ref;
|
||||
using zxing::BitMatrix;
|
||||
|
@ -196,10 +195,10 @@ float Detector::calculateModuleSizeOneWay(Ref<ResultPoint> pattern, Ref<ResultPo
|
|||
(int)otherPattern->getX(), (int)otherPattern->getY());
|
||||
float moduleSizeEst2 = sizeOfBlackWhiteBlackRunBothWays((int)otherPattern->getX(), (int)otherPattern->getY(),
|
||||
(int)pattern->getX(), (int)pattern->getY());
|
||||
if (isnan(moduleSizeEst1)) {
|
||||
if (zxing::isnan(moduleSizeEst1)) {
|
||||
return moduleSizeEst2;
|
||||
}
|
||||
if (isnan(moduleSizeEst2)) {
|
||||
if (zxing::isnan(moduleSizeEst2)) {
|
||||
return moduleSizeEst1;
|
||||
}
|
||||
// Average them, and divide by 7 since we've counted the width of 3 black modules,
|
||||
|
|
Loading…
Reference in a new issue