Changed array equals function definition.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "tensorarray.h"
|
||||
|
||||
bool tarray_equals(dtype* a1, dtype* a2, uint32_t len)
|
||||
bool tarray_equals(const dtype* a1, const dtype* a2, uint32_t len)
|
||||
{
|
||||
/* Checks whether to arrays are equal. If one or both arrays are array
|
||||
* pointers are NULL, false is returned.
|
||||
@@ -18,7 +18,7 @@ bool tarray_equals(dtype* a1, dtype* a2, uint32_t len)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool tarray_uint32_equals(uint32_t* a1, uint32_t* a2, uint32_t len)
|
||||
bool tarray_uint32_equals(const uint32_t* a1, const uint32_t* a2, uint32_t len)
|
||||
{
|
||||
/* Checks whether to arrays of the type uint32_t are equal. If one or both
|
||||
* arrays are array pointers are NULL, false is returned.
|
||||
|
||||
Reference in New Issue
Block a user