Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
remove paren
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Sep 13, 2020
1 parent 3a81ac7 commit d8ff571
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/BCHUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct BCHUtil {
private static func bchDigit(of data: Int) -> Int {
var digit = 0
var data = UInt(data)
while (data != 0) {
while data != 0 {
digit += 1
data >>= 1
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/QRCodeModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ struct QRCodeModel {
var byteIndex = 0

var col: Int = moduleCount - 1
while (col > 0) {
while col > 0 {
if col == 6 {
col -= 1
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/QRMath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct QRMath {
while n < 0 {
n += 255
}
while (n >= 256) {
while n >= 256 {
n -= 255
}
return QRMath.instance.EXP_TABLE[n]
Expand Down

0 comments on commit d8ff571

Please sign in to comment.