kill a gcc warning
authorotto <otto@openbsd.org>
Tue, 30 Jan 2018 17:45:53 +0000 (17:45 +0000)
committerotto <otto@openbsd.org>
Tue, 30 Jan 2018 17:45:53 +0000 (17:45 +0000)
libexec/ld.so/malloc.c

index 133cd4e..dc75dbb 100644 (file)
@@ -604,7 +604,7 @@ omalloc_make_chunks(struct dir_info *d, int bits, int listnum)
                goto err;
        bp->page = pp;
 
-       if (insert(d, (void *)((uintptr_t)pp | bits + 1), (uintptr_t)bp))
+       if (insert(d, (void *)((uintptr_t)pp | (bits + 1)), (uintptr_t)bp))
                goto err;
        LIST_INSERT_HEAD(&d->chunk_dir[bits][listnum], bp, entries);
        return bp;