Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Cast an int argument to umax2s() to size_t.



details:   https://anonhg.NetBSD.org/src/rev/f7a799d62be2
branches:  trunk
changeset: 778285:f7a799d62be2
user:      he <he%NetBSD.org@localhost>
date:      Wed Mar 21 09:49:02 2012 +0000

description:
Cast an int argument to umax2s() to size_t.

diffstat:

 lib/libc/stdlib/jemalloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7f36892dd7ca -r f7a799d62be2 lib/libc/stdlib/jemalloc.c
--- a/lib/libc/stdlib/jemalloc.c        Wed Mar 21 09:05:35 2012 +0000
+++ b/lib/libc/stdlib/jemalloc.c        Wed Mar 21 09:49:02 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jemalloc.c,v 1.25 2012/03/21 00:38:06 christos Exp $   */
+/*     $NetBSD: jemalloc.c,v 1.26 2012/03/21 09:49:02 he Exp $ */
 
 /*-
  * Copyright (C) 2006,2007 Jason Evans <jasone%FreeBSD.org@localhost>.
@@ -118,7 +118,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.147 2007/06/15 22:00:16 jasone Exp $"); */ 
-__RCSID("$NetBSD: jemalloc.c,v 1.25 2012/03/21 00:38:06 christos Exp $");
+__RCSID("$NetBSD: jemalloc.c,v 1.26 2012/03/21 09:49:02 he Exp $");
 
 #ifdef __FreeBSD__
 #include "libc_private.h"
@@ -3227,7 +3227,7 @@
                    "");
 
                _malloc_message("Chunk size: ", umax2s(chunksize, s), "", "");
-               _malloc_message(" (2^", umax2s(opt_chunk_2pow, s), ")\n", "");
+               _malloc_message(" (2^", umax2s((size_t) opt_chunk_2pow, s), ")\n", "");
 
 #ifdef MALLOC_STATS
                {



Home | Main Index | Thread Index | Old Index