From 946c12faaef55b1a9619ee17329bb2ff982f38aa Mon Sep 17 00:00:00 2001 From: Saran Tunyasuvunakool Date: Mon, 12 Dec 2022 08:21:41 -0800 Subject: [PATCH] Add missing semicolons after `mjFREESTACK`. The code is already well-formed since the macro itself contains a semicolon, however this is stylistically inconsistent with the rest of the codebase. The missing semicolon is also problematic for automated code transformations. PiperOrigin-RevId: 494734527 Change-Id: I9aef5844c8c3cce6eefea8f8bf13a4ab3dd79878 --- src/engine/engine_forward.c | 2 +- src/engine/engine_support.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/engine_forward.c b/src/engine/engine_forward.c index feeefc3a..bb4e36be 100644 --- a/src/engine/engine_forward.c +++ b/src/engine/engine_forward.c @@ -734,7 +734,7 @@ void mj_implicitSkip(const mjModel *m, mjData *d, int skipfactor) { // advance state and time mj_advance(m, d, d->act_dot, qacc, NULL); - mjFREESTACK + mjFREESTACK; } diff --git a/src/engine/engine_support.c b/src/engine/engine_support.c index f7414e7d..040440e0 100644 --- a/src/engine/engine_support.c +++ b/src/engine/engine_support.c @@ -917,7 +917,7 @@ void mj_makeMSparse(const mjModel* m, mjData* d, int* rownnz, int* rowadr, int* } } - mjFREESTACK + mjFREESTACK; } @@ -952,7 +952,7 @@ void mj_setMSparse(const mjModel* m, mjData* d, mjtNum* dst, } } - mjFREESTACK + mjFREESTACK; }