Skip to content

Commit

Permalink
Update mutable_globals pointer type to const (luau 0.590)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Aug 12, 2023
1 parent 052310e commit b3592bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b3592bc

Please sign in to comment.