about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-03-09 16:21:22 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-03-09 16:21:22 +0100
commit229855e5983881812b21b215346cb990722c6023 (patch)
tree7c036c1a0b8c36d6b86af3dc8a712c38411cb2e5 /malloc
parentd9f26dab2cc768a650b19ec6460ade4e44a530b9 (diff)
downloadglibc-229855e5983881812b21b215346cb990722c6023.tar.gz
glibc-229855e5983881812b21b215346cb990722c6023.tar.xz
glibc-229855e5983881812b21b215346cb990722c6023.zip
malloc: Revert sense of prev_inuse in comments
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 58f9acd4d1..e229181c5e 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1287,13 +1287,13 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 /* Ptr to next physical malloc_chunk. */
 #define next_chunk(p) ((mchunkptr) (((char *) (p)) + chunksize (p)))
 
-/* Size of the chunk below P.  Only valid if prev_inuse (P).  */
+/* Size of the chunk below P.  Only valid if !prev_inuse (P).  */
 #define prev_size(p) ((p)->mchunk_prev_size)
 
-/* Set the size of the chunk below P.  Only valid if prev_inuse (P).  */
+/* Set the size of the chunk below P.  Only valid if !prev_inuse (P).  */
 #define set_prev_size(p, sz) ((p)->mchunk_prev_size = (sz))
 
-/* Ptr to previous physical malloc_chunk.  Only valid if prev_inuse (P).  */
+/* Ptr to previous physical malloc_chunk.  Only valid if !prev_inuse (P).  */
 #define prev_chunk(p) ((mchunkptr) (((char *) (p)) - prev_size (p)))
 
 /* Treat space at ptr + offset as a chunk */