Commit 154486e0 authored by Etienne Renault's avatar Etienne Renault
Browse files

bricks: fix clang warnings

* bricks/brick-hash.h, bricks/brick-shmem.h: here.
parent 4eff22ae
......@@ -800,7 +800,7 @@ struct Jenkins {
saw[i] = SpookyHash::Hash32(buf, i, 0);
if (saw[i] != expected[i])
{
printf("%3d: saw 0x%.8x, expected 0x%.8lx\n", i, saw[i], expected[i]);
printf("%3d: saw 0x%.8x, expected 0x%.8lx\n", i, saw[i], (unsigned long) expected[i]);
ASSERT( false );
}
}
......
......@@ -369,7 +369,7 @@ protected:
Node *next;
Node() {
read = write = buffer;
next = 0;
next = nullptr;
}
};
......@@ -393,7 +393,7 @@ public:
~Fifo() {
while ( head != tail ) {
Node *next = head->next;
ASSERT( next != 0 );
ASSERT( next != nullptr );
delete head;
head = next;
}
......
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