Fix chinese numbers being limited to 255 (#2802)

This commit is contained in:
frozolotl 2023-11-30 18:19:58 +09:00 committed by GitHub
parent 3ea2ad6cae
commit 79c2d1f29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -482,7 +482,7 @@ impl NumberingKind {
Case::Upper => ChineseCase::Upper,
};
match (n as u8).to_chinese(
match (n as u64).to_chinese(
match l {
Self::SimplifiedChinese => ChineseVariant::Simple,
Self::TraditionalChinese => ChineseVariant::Traditional,