Fix memory allocation error when memory size is larger than 2G. Fixes #1606
PiperOrigin-RevId: 627058355 Change-Id: Iebef647a0107d1f112a876d705f5b3ea888b4a41
This commit is contained in:
committed by
Copybara-Service
parent
6540289eb1
commit
546a27ca72
@@ -6430,10 +6430,10 @@ public static unsafe extern void mj_freeStack(mjData_* d);
|
||||
public static unsafe extern void* mj_stackAllocByte(mjData_* d, UIntPtr bytes, UIntPtr alignment);
|
||||
|
||||
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static unsafe extern double* mj_stackAllocNum(mjData_* d, int size);
|
||||
public static unsafe extern double* mj_stackAllocNum(mjData_* d, UIntPtr size);
|
||||
|
||||
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static unsafe extern int* mj_stackAllocInt(mjData_* d, int size);
|
||||
public static unsafe extern int* mj_stackAllocInt(mjData_* d, UIntPtr size);
|
||||
|
||||
[DllImport("mujoco", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static unsafe extern void mj_deleteData(mjData_* d);
|
||||
|
||||
Reference in New Issue
Block a user