Gunnar

nordisk/heimdall

guests/verify-bundle/openzl/wasm32.patch

--- a/src/openzl/common/allocation.c
+++ b/src/openzl/common/allocation.c
@@ -174,6 +174,11 @@
 typedef struct {
     size_t index;
     size_t size;
+#if SIZE_MAX == UINT32_MAX
+    /* heimdall wasm32 port: keep sizeof(HeapMeta) a multiple of 16 so the
+     * user pointer after it stays 16-byte aligned on 32-bit targets. */
+    size_t pad32[2];
+#endif
 #if ZL_POISON_SUPPORTED
     uint8_t redzone[ZL_REDZONE_SIZE];
 #endif
@@ -196,9 +201,6 @@
 static void*
 ALLOC_HeapArena_allocImpl(HeapArena* arena, HeapMeta* meta, size_t size)
 {
-    ZL_STATIC_ASSERT(
-            sizeof(size_t) == 8,
-            "OpenZL currently only supports 64-bit platforms");
 
     if (meta == NULL) {
         return NULL;