projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tabbing
[iotcloud.git]
/
version2
/
src
/
C
/
array.h
diff --git
a/version2/src/C/array.h
b/version2/src/C/array.h
index 3d77da929baada575a662357fc92e2d60f871822..e2e2a67f462c8659ff2272f98c4323c5acd01b33 100644
(file)
--- a/
version2/src/C/array.h
+++ b/
version2/src/C/array.h
@@
-53,13
+53,13
@@
public:
ourfree(array);
}
ourfree(array);
}
- bool equals(Array<type> *
_array) {
+ bool equals(Array<type> *_array) {
if (_array->size != size)
return false;
if (_array->size != size)
return false;
- int cmp
=
memcmp(array, _array->array, size * sizeof(type));
+ int cmp
=
memcmp(array, _array->array, size * sizeof(type));
return cmp == 0;
}
return cmp == 0;
}
-
+
type get(uint index) const {
return array[index];
}
type get(uint index) const {
return array[index];
}
@@
-82,7
+82,7
@@
private:
};
template<typename type>
};
template<typename type>
-void System_arraycopy(Array<type> *
src, int32_t srcPos, Array<type> *dst, int32_t dstPos, int32_t len) {
+void System_arraycopy(Array<type> *src, int32_t srcPos, Array<type> *dst, int32_t dstPos, int32_t len) {
if (srcPos + len > src->length() ||
dstPos + len > dst->length())
ASSERT(0);
if (srcPos + len > src->length() ||
dstPos + len > dst->length())
ASSERT(0);