@@ -11,7 +11,7 @@ use crate::chunk::ChunkMode;
11
11
use crate :: error:: { Error , Result } ;
12
12
use crate :: function:: Function ;
13
13
use crate :: memory:: { MemoryState , ALLOCATOR } ;
14
- use crate :: state:: util:: { callback_error_ext, ref_stack_pop } ;
14
+ use crate :: state:: util:: callback_error_ext;
15
15
use crate :: stdlib:: StdLib ;
16
16
use crate :: string:: String ;
17
17
use crate :: table:: Table ;
@@ -816,21 +816,21 @@ impl RawLua {
816
816
#[ inline]
817
817
pub ( crate ) unsafe fn pop_ref ( & self ) -> ValueRef {
818
818
ffi:: lua_xmove ( self . state ( ) , self . ref_thread ( ) , 1 ) ;
819
- let index = ref_stack_pop ( self . extra . get ( ) ) ;
819
+ let index = ( * self . extra . get ( ) ) . ref_stack_pop ( ) ;
820
820
ValueRef :: new ( self , index)
821
821
}
822
822
823
823
// Same as `pop_ref` but assumes the value is already on the reference thread
824
824
#[ inline]
825
825
pub ( crate ) unsafe fn pop_ref_thread ( & self ) -> ValueRef {
826
- let index = ref_stack_pop ( self . extra . get ( ) ) ;
826
+ let index = ( * self . extra . get ( ) ) . ref_stack_pop ( ) ;
827
827
ValueRef :: new ( self , index)
828
828
}
829
829
830
830
#[ inline]
831
831
pub ( crate ) unsafe fn clone_ref ( & self , vref : & ValueRef ) -> ValueRef {
832
832
ffi:: lua_pushvalue ( self . ref_thread ( ) , vref. index ) ;
833
- let index = ref_stack_pop ( self . extra . get ( ) ) ;
833
+ let index = ( * self . extra . get ( ) ) . ref_stack_pop ( ) ;
834
834
ValueRef :: new ( self , index)
835
835
}
836
836
0 commit comments