Replace missing abs() with ::abs()

This commit is contained in:
Alfred E. Neumayer 2019-04-15 12:34:01 +02:00 committed by GitHub
parent b2dc634098
commit 38409776aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ Ref<ResultPointsAndTransitions> Detector::transitionsBetween(Ref<ResultPoint> fr
int fromY = (int) from->getY();
int toX = (int) to->getX();
int toY = (int) to->getY();
bool steep = ::abs(toY - fromY) > abs(toX - fromX);
bool steep = ::abs(toY - fromY) > ::abs(toX - fromX);
if (steep) {
int temp = fromX;
fromX = fromY;