core: irrt fix minor formatting

This commit is contained in:
lyken 2024-07-15 12:05:47 +08:00
parent b940b0a3a1
commit 29734ce3af
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ namespace { namespace ndarray { namespace basic {
}
template <typename SizeT>
uint8_t* get_pelement_by_indices(NDArray<SizeT>* ndarray, const SizeT *indices) {
uint8_t* get_pelement_by_indices(NDArray<SizeT>* 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];

View File

@ -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