Fixup after 3a730df
(Avoid pointer arithmetic on void*[...])
This commit is contained in:
parent
17767b5f2b
commit
b54aef1d8c
@ -95,7 +95,7 @@ TEST_BEGIN(test_zero)
|
|||||||
"Expected zeroed memory");
|
"Expected zeroed memory");
|
||||||
}
|
}
|
||||||
if (psz != qsz) {
|
if (psz != qsz) {
|
||||||
memset((void *)(uintptr_t)q+psz, FILL_BYTE,
|
memset((void *)((uintptr_t)q+psz), FILL_BYTE,
|
||||||
qsz-psz);
|
qsz-psz);
|
||||||
psz = qsz;
|
psz = qsz;
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ TEST_BEGIN(test_lg_align_and_zero)
|
|||||||
assert_false(validate_fill(q, 0, 0, MAX_VALIDATE),
|
assert_false(validate_fill(q, 0, 0, MAX_VALIDATE),
|
||||||
"Expected zeroed memory");
|
"Expected zeroed memory");
|
||||||
assert_false(validate_fill(
|
assert_false(validate_fill(
|
||||||
(void *)(uintptr_t)q+sz-MAX_VALIDATE,
|
(void *)((uintptr_t)q+sz-MAX_VALIDATE),
|
||||||
0, 0, MAX_VALIDATE), "Expected zeroed memory");
|
0, 0, MAX_VALIDATE), "Expected zeroed memory");
|
||||||
}
|
}
|
||||||
p = q;
|
p = q;
|
||||||
|
Loading…
Reference in New Issue
Block a user