From 29734ce3afe1985e72962584db4a1a7ebdf16ce1 Mon Sep 17 00:00:00 2001 From: lyken Date: Mon, 15 Jul 2024 12:05:47 +0800 Subject: [PATCH] core: irrt fix minor formatting --- nac3core/irrt/irrt/numpy/ndarray_basic.hpp | 2 +- nac3core/irrt/test/core.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/irrt/irrt/numpy/ndarray_basic.hpp b/nac3core/irrt/irrt/numpy/ndarray_basic.hpp index f3511cb2..f9f324a2 100644 --- a/nac3core/irrt/irrt/numpy/ndarray_basic.hpp +++ b/nac3core/irrt/irrt/numpy/ndarray_basic.hpp @@ -78,7 +78,7 @@ namespace { namespace ndarray { namespace basic { } template - uint8_t* get_pelement_by_indices(NDArray* ndarray, const SizeT *indices) { + uint8_t* get_pelement_by_indices(NDArray* ndarray, const SizeT* indices) { uint8_t* element = ndarray->data; for (SizeT dim_i = 0; dim_i < ndarray->ndims; dim_i++) element += indices[dim_i] * ndarray->strides[dim_i]; diff --git a/nac3core/irrt/test/core.hpp b/nac3core/irrt/test/core.hpp index 94e51777..d2deb50f 100644 --- a/nac3core/irrt/test/core.hpp +++ b/nac3core/irrt/test/core.hpp @@ -118,7 +118,7 @@ void __assert_errctx_no_error(const char* file, int line, ErrorContext* errctx) #define assert_errctx_no_error(errctx) __assert_errctx_no_error(__FILE__, __LINE__, errctx) -void __assert_errctx_has_error(const char* file, int line, ErrorContext *errctx, ErrorId expected_error_id) { +void __assert_errctx_has_error(const char* file, int line, ErrorContext* errctx, ErrorId expected_error_id) { if (errctx->has_error()) { if (errctx->error_id == expected_error_id) { // OK