Commit 86c751f8 authored by John Esmet's avatar John Esmet

FT-259 Placate the build slaves with their exotic toolchain.

parent 92e19eac
...@@ -118,7 +118,9 @@ class memarena_unit_test { ...@@ -118,7 +118,9 @@ class memarena_unit_test {
// make sure memory was allocated ok by // make sure memory was allocated ok by
// writing to buf and reading it back // writing to buf and reading it back
if (size > 0) {
memset(ma._current_chunk.buf, magic, size); memset(ma._current_chunk.buf, magic, size);
}
for (size_t i = 0; i < size; i++) { for (size_t i = 0; i < size; i++) {
const char *buf = reinterpret_cast<char *>(ma._current_chunk.buf); const char *buf = reinterpret_cast<char *>(ma._current_chunk.buf);
invariant(buf[i] == magic); invariant(buf[i] == magic);
...@@ -134,7 +136,9 @@ class memarena_unit_test { ...@@ -134,7 +136,9 @@ class memarena_unit_test {
// make sure memory was allocated ok by // make sure memory was allocated ok by
// writing to buf and reading it back // writing to buf and reading it back
if (size > 0) {
memset(ma._current_chunk.buf, magic, size); memset(ma._current_chunk.buf, magic, size);
}
for (size_t i = 0; i < size; i++) { for (size_t i = 0; i < size; i++) {
const char *c = reinterpret_cast<char *>(ma._current_chunk.buf); const char *c = reinterpret_cast<char *>(ma._current_chunk.buf);
invariant(c[i] == magic); invariant(c[i] == magic);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment