summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index 44e6344..35447e9 100644
--- a/build.rs
+++ b/build.rs
@@ -26,8 +26,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
26 return Err("not a PSF2 font".into()); 26 return Err("not a PSF2 font".into());
27 } 27 }
28 28
29 let hdr_size = u32::from_le_bytes(raw[8..12].try_into()?) as usize; 29 let hdr_size = u32::from_le_bytes(raw[8..12].try_into()?) as usize;
30 let num_glyphs = u32::from_le_bytes(raw[16..20].try_into()?) as usize; 30 let num_glyphs = u32::from_le_bytes(raw[16..20].try_into()?) as usize;
31 let bytes_per_glyph = u32::from_le_bytes(raw[20..24].try_into()?) as usize; 31 let bytes_per_glyph = u32::from_le_bytes(raw[20..24].try_into()?) as usize;
32 32
33 if num_glyphs != 256 { 33 if num_glyphs != 256 {