Skip to content

Commit ddf59a9

Browse files
bors[bot]Amanieu
andcommitted
Merge #66
66: Work around emscripten bug r=Amanieu a=Amanieu Thanks @nikic and @bvinc for tracking this down. cc emscripten-core/emscripten-fastcomp#258 Co-authored-by: Amanieu d'Antras <[email protected]>
2 parents 7dbd666 + 6eddbe4 commit ddf59a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/raw/mod.rs

+2
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)