From: otto Date: Tue, 30 Jan 2018 17:45:53 +0000 (+0000) Subject: kill a gcc warning X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf73d255909e66a699ad0afa26112f7f7a1679c1;p=openbsd kill a gcc warning --- diff --git a/libexec/ld.so/malloc.c b/libexec/ld.so/malloc.c index 133cd4e59d0..dc75dbbc287 100644 --- a/libexec/ld.so/malloc.c +++ b/libexec/ld.so/malloc.c @@ -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;