* fixes #6634 * remove more usages of unary <
This commit is contained in:
parent
b4580ad002
commit
7c03c882f5
6 changed files with 7 additions and 7 deletions
|
|
@ -181,7 +181,7 @@ proc `$`*(self: SecureHash): string =
|
|||
result.add(toHex(int(v), 2))
|
||||
|
||||
proc parseSecureHash*(hash: string): SecureHash =
|
||||
for i in 0.. <Sha1DigestSize:
|
||||
for i in 0 ..< Sha1DigestSize:
|
||||
Sha1Digest(result)[i] = uint8(parseHexInt(hash[i*2] & hash[i*2 + 1]))
|
||||
|
||||
proc `==`*(a, b: SecureHash): bool =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue