From c190933f5f0a6e87378ee3552bbd8bff19a84d13 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 10 Oct 2022 22:02:37 -0500 Subject: [PATCH] floor works better --- src/qrcode/detector/alignment_pattern_finder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qrcode/detector/alignment_pattern_finder.rs b/src/qrcode/detector/alignment_pattern_finder.rs index 2038007..ddb0517 100644 --- a/src/qrcode/detector/alignment_pattern_finder.rs +++ b/src/qrcode/detector/alignment_pattern_finder.rs @@ -290,7 +290,7 @@ impl AlignmentPatternFinder { let centerJ = Self::centerFromEnd(stateCount, j); let centerI = self.crossCheckVertical( i, - centerJ.round() as u32, + centerJ.floor() as u32, 2 * stateCount[1], stateCountTotal, );