summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/export/subset.rs2
-rw-r--r--tests/typ/style/set.typ1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/export/subset.rs b/src/export/subset.rs
index 651ed52b..13a991f9 100644
--- a/src/export/subset.rs
+++ b/src/export/subset.rs
@@ -89,7 +89,7 @@ impl<'a> Subsetter<'a> {
// Write table directory.
let count = self.tables.len() as u16;
let entry_selector = (count as f32).log2().floor() as u16;
- let search_range = entry_selector.pow(2) * 16;
+ let search_range = 2u16.pow(u32::from(entry_selector)) * 16;
let range_shift = count * 16 - search_range;
w.write(count);
w.write(search_range);
diff --git a/tests/typ/style/set.typ b/tests/typ/style/set.typ
index 6ce1d303..927d8aa6 100644
--- a/tests/typ/style/set.typ
+++ b/tests/typ/style/set.typ
@@ -1,4 +1,5 @@
// General tests for set.
+// Ref: false
---
// Error: 2-10 set, show and wrap are only allowed directly in markup