diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | malloc/tst-alloc_buffer.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2017-06-26 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. + 2017-06-25 Rical Jasan <ricaljasan@pacific.net> * manual/math.texi: Fix a grammatical error. 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); } |