summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>2025-03-24 19:16:33 +0100
committerGitHub <noreply@github.com>2025-03-24 18:16:33 +0000
commit38213ed534d8a7cd520c0265b99a345bc2966b39 (patch)
tree248bbfcead3218067e399145be10b2ef3187624e /crates/typst-library/src/layout
parent636eea18bc1c3fe2acb09e59e67f38a4a0c1b323 (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.rs2
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 {