diff options
| author | frozolotl <44589151+frozolotl@users.noreply.github.com> | 2023-11-30 18:19:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-30 10:19:58 +0100 |
| commit | 79c2d1f29eb0be9d9dfd20f48fa8f54388fada6b (patch) | |
| tree | 9779a244703f7bf5e3ab2a75934458b22ee1ca1c /crates | |
| parent | 3ea2ad6cae6211d1ab7c85a79c1c8ba7dcf55556 (diff) | |
Fix chinese numbers being limited to 255 (#2802)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/model/numbering.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/model/numbering.rs b/crates/typst/src/model/numbering.rs index d91a5c52..9feab608 100644 --- a/crates/typst/src/model/numbering.rs +++ b/crates/typst/src/model/numbering.rs @@ -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, |
