diff --git a/runtime/compiletime/memory/64bit_nix.c b/runtime/compiletime/memory/64bit_nix.c index d51b4d6..cd5bb68 100644 --- a/runtime/compiletime/memory/64bit_nix.c +++ b/runtime/compiletime/memory/64bit_nix.c @@ -22,13 +22,13 @@ get_f64(int32_t offset) return *(double *)address; } -INLINE i8 +INLINE int8_t get_i8(int32_t offset) { char *mem_as_chars = (char *)local_sandbox_context_cache.linear_memory_start; void *address = &mem_as_chars[offset]; - return *(i8 *)address; + return *(int8_t *)address; } INLINE int16_t @@ -96,12 +96,12 @@ set_f64(int32_t offset, double v) } INLINE void -set_i8(int32_t offset, i8 v) +set_i8(int32_t offset, int8_t v) { char *mem_as_chars = (char *)local_sandbox_context_cache.linear_memory_start; void *address = &mem_as_chars[offset]; - *(i8 *)address = v; + *(int8_t *)address = v; } INLINE void diff --git a/runtime/include/types.h b/runtime/include/types.h index cc17bf9..6f250e5 100644 --- a/runtime/include/types.h +++ b/runtime/include/types.h @@ -35,9 +35,6 @@ #define round_to_page(x) round_to_pow2(x, PAGE_SIZE) #define round_up_to_page(x) round_up_to_pow2(x, PAGE_SIZE) -/* Type alias's so I don't have to write uint32_t a million times */ -typedef signed char i8; - /* FIXME: per-module configuration? */ #define WASM_PAGE_SIZE (1024 * 64) /* 64KB */ #define WASM_START_PAGES (1 << 8) /* 16MB */