Skip to content

Commit

Permalink
Make compatible with Crystal 0.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Jul 28, 2021
1 parent 7519260 commit 8de1b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basehangul.cr
Expand Up @@ -226,7 +226,7 @@ module BaseHangul
last = chunks.last
case last.size
when 2 then chunks[-1] = "1" + last.rjust(10, '0')
when 4, 6, 8 then padding = PADDING.to_s * (last.size / 2 - 1)
when 4, 6, 8 then padding = PADDING.to_s * (last.size // 2 - 1)
end
end
chunks.map { |b| to_hangul(b.ljust(10, '0').to_i(2)) }.join + padding
Expand Down

0 comments on commit 8de1b8c

Please sign in to comment.