Message ID | 20170623203736.16876-1-tuliom@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On 06/23/2017 10:37 PM, Tulio Magno Quites Machado Filho wrote: > 2017-06-23 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> > > * malloc/tst-alloc_buffer.c (test_misaligned): Cast to char > before comparing with another char. Oops, thanks. Please commit. Florian
diff --git a/malloc/tst-alloc_buffer.c b/malloc/tst-alloc_buffer.c index 1c14399..9b2bd20 100644 --- a/malloc/tst-alloc_buffer.c +++ b/malloc/tst-alloc_buffer.c @@ -429,7 +429,7 @@ test_misaligned (char pad) } /* Verify that padding was not overwritten. */ - TEST_VERIFY (backing[0] == ~pad); + TEST_VERIFY (backing[0] == (char) ~pad); TEST_VERIFY (backing[SIZE + 1] == pad); free (backing); }