back to using sum

This commit is contained in:
laelnasan
2020-12-06 22:28:02 -03:00
committed by GitHub
parent 200da90e57
commit 7b82990bb1

View File

@@ -284,7 +284,7 @@ function string:wcwidth(idx)
for aux = 2, seq do
c = self:byte(idx + aux - 1)
val = bit.bxor(val * 2 ^ 6, bit.band(c, 0x3F))
val = val * 2 ^ 6 + bit.band(c, 0x3F)
end
-- test for 8-bit control characters