summaryrefslogtreecommitdiff
path: root/src/chunk.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk.rs')
-rw-r--r--src/chunk.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk.rs b/src/chunk.rs
index 267b49a..f3db5de 100644
--- a/src/chunk.rs
+++ b/src/chunk.rs
@@ -243,10 +243,10 @@ impl Compiler {
.iter()
.map(|s| s.as_ptr())
.collect::<Vec<_>>();
- let mut mutable_globals_ptr = ptr::null_mut();
+ let mut mutable_globals_ptr = ptr::null();
if !mutable_globals.is_empty() {
mutable_globals.push(ptr::null());
- mutable_globals_ptr = mutable_globals.as_mut_ptr();
+ mutable_globals_ptr = mutable_globals.as_ptr();
}
unsafe {