Skip to content

Commit 6eddbe4

Browse files
committed
Work around emscripten bug emscripten-core/emscripten-fastcomp#258
Thanks @nikic and @bvinc for tracking this down.
1 parent 7dbd666 commit 6eddbe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raw/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ impl Iterator for ProbeSeq {
173173
///
174174
/// Returns `None` if an overflow occurs.
175175
#[inline]
176+
// Workaround for emscripten bug emscripten-core/emscripten-fastcomp#258
177+
#[cfg_attr(target_os = "emscripten", inline(never))]
176178
fn capacity_to_buckets(cap: usize) -> Option<usize> {
177179
let adjusted_cap = if cap < 8 {
178180
// Need at least 1 free bucket on small tables

0 commit comments

Comments
 (0)