diff --git a/examples/hello-web/platform/host.zig b/examples/hello-web/platform/host.zig index bfd519e9de..250aac40e0 100644 --- a/examples/hello-web/platform/host.zig +++ b/examples/hello-web/platform/host.zig @@ -30,7 +30,7 @@ export fn roc_alloc(size: usize, alignment: u32) callconv(.C) ?*c_void { return malloc(size); } -export fn roc_realloc(c_ptr: *c_void, old_size: usize, new_size: usize, alignment: u32) callconv(.C) ?*c_void { +export fn roc_realloc(c_ptr: *c_void, new_size: usize, old_size: usize, alignment: u32) callconv(.C) ?*c_void { _ = old_size; _ = alignment; diff --git a/examples/hello-world/platform/host.c b/examples/hello-world/platform/host.c index 99ada123fe..8607bf1cbb 100644 --- a/examples/hello-world/platform/host.c +++ b/examples/hello-world/platform/host.c @@ -7,7 +7,7 @@ void* roc_alloc(size_t size, unsigned int alignment) { return malloc(size); } -void* roc_realloc(void* ptr, size_t old_size, size_t new_size, +void* roc_realloc(void* ptr, size_t new_size, size_t old_size, unsigned int alignment) { return realloc(ptr, new_size); }