Skip to content

Commit f75e85a

Browse files
seddonm1ovr
authored andcommitted
add wasm32 to hash, fix wasm32 build (apache#787)
* add wasm32 to hash * cargo fmt
1 parent eb61adc commit f75e85a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

parquet/src/util/hash_util.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ fn hash_(data: &[u8], seed: u32) -> u32 {
3333
}
3434
}
3535

36-
#[cfg(any(target_arch = "aarch64", target_arch = "arm", target_arch = "riscv64"))]
36+
#[cfg(any(
37+
target_arch = "aarch64",
38+
target_arch = "arm",
39+
target_arch = "riscv64",
40+
target_arch = "wasm32"
41+
))]
3742
unsafe {
3843
murmur_hash2_64a(data, seed as u64) as u32
3944
}

0 commit comments

Comments
 (0)