Compare commits
1
Commits
9394b51158
..
simon
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe7cf9b2ce
|
+1
-1
@@ -60,7 +60,7 @@ void test_get_duplicate_does_modify()
|
||||
{
|
||||
unsigned int arr1[] = {1, 2, 3, 4, 5, 4, 3, 2, 1}; // sorting would change this
|
||||
size_t len1 = sizeof(arr1) / sizeof(arr1[0]);
|
||||
unsigned int arr1Copy[len1];
|
||||
unsigned int arr1Copy[9];
|
||||
memcpy(arr1Copy, arr1, len1 * sizeof(unsigned int));
|
||||
|
||||
getDuplicate(arr1, len1); // return value does not matter
|
||||
|
||||
Reference in New Issue
Block a user