forked from M-Labs/nac3
core: irrt fix minor formatting
This commit is contained in:
parent
b940b0a3a1
commit
29734ce3af
|
@ -78,7 +78,7 @@ namespace { namespace ndarray { namespace basic {
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename SizeT>
|
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;
|
uint8_t* element = ndarray->data;
|
||||||
for (SizeT dim_i = 0; dim_i < ndarray->ndims; dim_i++)
|
for (SizeT dim_i = 0; dim_i < ndarray->ndims; dim_i++)
|
||||||
element += indices[dim_i] * ndarray->strides[dim_i];
|
element += indices[dim_i] * ndarray->strides[dim_i];
|
||||||
|
|
|
@ -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)
|
#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->has_error()) {
|
||||||
if (errctx->error_id == expected_error_id) {
|
if (errctx->error_id == expected_error_id) {
|
||||||
// OK
|
// OK
|
||||||
|
|
Loading…
Reference in New Issue