summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-08-12 17:43:25 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-08-12 17:43:25 +0100
commitb3592bc23e08319f830c0c633c95fa8be51c4820 (patch)
treec2175377b1952607a50e02e22369d99305d68ffe /src
parent052310e93d59b7027746e6a6b7184a1631d19dbf (diff)
downloadmlua-b3592bc23e08319f830c0c633c95fa8be51c4820.zip
Update mutable_globals pointer type to const (luau 0.590)
Diffstat (limited to 'src')
-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 {