Change mj_sizeModel return type to mjtSize.
PiperOrigin-RevId: 831768095 Change-Id: I079fbadc403b32a3ce8a73fe21b2cd66391401c3
This commit is contained in:
committed by
Copybara-Service
parent
a168b3ef7f
commit
042c5223a6
@@ -671,8 +671,8 @@ void mj_deleteModel(mjModel* m) {
|
||||
|
||||
|
||||
// size of buffer needed to hold model
|
||||
int mj_sizeModel(const mjModel* m) {
|
||||
int size = (
|
||||
mjtSize mj_sizeModel(const mjModel* m) {
|
||||
mjtSize size = (
|
||||
sizeof(int)*(NHEADER+getnint())
|
||||
+ sizeof(mjtSize)*getnbuffer()
|
||||
+ sizeof(mjOption)
|
||||
|
||||
@@ -76,7 +76,7 @@ mjModel* mj_loadModelBuffer(const void* buffer, int buffer_sz);
|
||||
MJAPI void mj_deleteModel(mjModel* m);
|
||||
|
||||
// size of buffer needed to hold model
|
||||
MJAPI int mj_sizeModel(const mjModel* m);
|
||||
MJAPI mjtSize mj_sizeModel(const mjModel* m);
|
||||
|
||||
// validate reference fields in a model; return null if valid, error message otherwise
|
||||
MJAPI const char* mj_validateReferences(const mjModel* m);
|
||||
|
||||
Reference in New Issue
Block a user