A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Adjust alignment assertions in C headers (#13753)
Alex Crichton3a70eb21e212
diff --git a/crates/c-api/include/wasmtime/val.h b/crates/c-api/include/wasmtime/val.hindex 6ce2bab344..eed7bcac6f 100644--- a/crates/c-api/include/wasmtime/val.h+++ b/crates/c-api/include/wasmtime/val.h@@ -350,10 +350,11 @@ static inline void __wasmtime_val_assertions() {sizeof(wasmtime_valunion_t) <= 24,"should be 16 bytes plus a pointer large (plus alignment on ""some platforms)");- static_assert(__alignof(wasmtime_valunion_t) == 8,- "should be 8-byte aligned");+ static_assert(__alignof(wasmtime_valunion_t) == __alignof(uint64_t),+ "should be aligned to u64");static_assert(sizeof(wasmtime_val_raw_t) == 16, "should be 16 bytes large");- static_assert(__alignof(wasmtime_val_raw_t) == 8, "should be 8-byte aligned");+ static_assert(__alignof(wasmtime_val_raw_t) == __alignof(uint64_t),+ "should be aligned to u64");}/**