From b3592bc23e08319f830c0c633c95fa8be51c4820 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Sat, 12 Aug 2023 17:43:25 +0100 Subject: Update mutable_globals pointer type to const (luau 0.590) --- src/chunk.rs | 4 ++-- 1 file 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::>(); - 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 { -- cgit v1.2.3