diff options
| author | Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com> | 2025-03-24 19:16:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 18:16:33 +0000 |
| commit | 38213ed534d8a7cd520c0265b99a345bc2966b39 (patch) | |
| tree | 248bbfcead3218067e399145be10b2ef3187624e /crates/typst-library/src/layout | |
| parent | 636eea18bc1c3fe2acb09e59e67f38a4a0c1b323 (diff) | |
Use `u64` instead of `usize` to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026)
Diffstat (limited to 'crates/typst-library/src/layout')
| -rw-r--r-- | crates/typst-library/src/layout/page.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/layout/page.rs b/crates/typst-library/src/layout/page.rs index af6ad642..62e25278 100644 --- a/crates/typst-library/src/layout/page.rs +++ b/crates/typst-library/src/layout/page.rs @@ -484,7 +484,7 @@ pub struct Page { pub supplement: Content, /// The logical page number (controlled by `counter(page)` and may thus not /// match the physical number). - pub number: usize, + pub number: u64, } impl Page { |
