diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 09239c58fd8..084c8acd62b 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -179,7 +179,7 @@ rust_task::start(uintptr_t exit_task_glue, if (j == callee_save_fp) *spp-- = frame_base; else - *spp-- = NULL; + *spp-- = (uintptr_t)NULL; } // Back up one, we overshot where sp should be.