diff --git a/core/fpu.c b/core/fpu.c index a1720ad..79a0047 100644 --- a/core/fpu.c +++ b/core/fpu.c @@ -3289,7 +3289,7 @@ void inst_fpu_other () { void fpu_initialize() { fpu_state_t *fpu = (fpu_state_t*)p_alloc(shoe.pool, sizeof(fpu_state_t)); - memset(fpu, sizeof(fpu_state_t), 0); + memset(fpu, 0, sizeof(fpu_state_t)); shoe.fpu_state = fpu; }