Change _Alignof to alignof in functions.cc

PiperOrigin-RevId: 558388811
Change-Id: I40f394d6dd05215a7499ede5903841a07cd1c9f0
This commit is contained in:
Kyle Bayes
2023-08-19 05:10:49 -07:00
committed by Copybara-Service
parent 488041d362
commit ed4bb2aab5
+3 -1
View File
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdalign.h>
#include <array>
#include <cstdint>
#include <memory>
@@ -1367,7 +1369,7 @@ PYBIND11_MODULE(_functions, pymodule) {
#define MJ_D(x) data->x
#define X(type, name, nr, nc) \
data->name = static_cast<type*>(InterceptMjErrors(::mj_arenaAlloc)( \
data, sizeof(type) * (nr) * (nc), _Alignof(type))); \
data, sizeof(type) * (nr) * (nc), alignof(type))); \
if (!data->name) { \
cleanup(data); \
throw FatalError("insufficient arena memory available"); \