467
edits
Changes
no edit summary
*
* In src/engine/engine_crossplatform.h add a conditional block specifically for Emscripten within the preprocessor directive in the engine_crossplatform.h file. Inside this block, include the sort_r.h header and define the mjQUICKSORT and quicksortfunc macros appropriately. This will separate the handling for Apple, Emscripten, and other platforms.
*
* In the cmake/MujocoOptions.cmake file, remove the -Wno-int-in-bool-context compiler warning flag from the list of warnings.
Also, for example in mjxmacro.h you have to involve adding explicit casting to size_t for the calculations of key_mpos and key_mquat array sizes, ensuring correct memory allocation and preventing potential integer overflow issues.