styleCheck: Fix some inconsistent identifiers (#16177)
This commit is contained in:
parent
29c9a1c14b
commit
297c8e403d
20 changed files with 64 additions and 64 deletions
|
|
@ -161,13 +161,13 @@ proc decode*(encoded: string): string {.raises: [PunyError].} =
|
|||
break
|
||||
w *= Base - t
|
||||
k += Base
|
||||
bias = adapt(i - oldi, runelen(result) + 1, oldi == 0)
|
||||
bias = adapt(i - oldi, runeLen(result) + 1, oldi == 0)
|
||||
|
||||
if i div (runelen(result) + 1) > high(int32) - n:
|
||||
if i div (runeLen(result) + 1) > high(int32) - n:
|
||||
raise newException(PunyError, "Value too large")
|
||||
|
||||
n += i div (runelen(result) + 1)
|
||||
i = i mod (runelen(result) + 1)
|
||||
n += i div (runeLen(result) + 1)
|
||||
i = i mod (runeLen(result) + 1)
|
||||
insert(result, $Rune(n), i)
|
||||
inc i
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue