Module Name:    src
Committed By:   agc
Date:           Thu Apr 23 03:49:39 UTC 2009

Modified Files:
        src/lib/libc/db/hash: hash_buf.c

Log Message:
Cast the arg to an unsigned value to let this compile


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libc/db/hash/hash_buf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/db/hash/hash_buf.c
diff -u src/lib/libc/db/hash/hash_buf.c:1.16 src/lib/libc/db/hash/hash_buf.c:1.17
--- src/lib/libc/db/hash/hash_buf.c:1.16	Wed Apr 22 21:52:59 2009
+++ src/lib/libc/db/hash/hash_buf.c	Thu Apr 23 03:49:39 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hash_buf.c,v 1.16 2009/04/22 21:52:59 njoly Exp $	*/
+/*	$NetBSD: hash_buf.c,v 1.17 2009/04/23 03:49:39 agc Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -37,7 +37,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hash_buf.c,v 1.16 2009/04/22 21:52:59 njoly Exp $");
+__RCSID("$NetBSD: hash_buf.c,v 1.17 2009/04/23 03:49:39 agc Exp $");
 
 /*
  * PACKAGE: hash
@@ -315,7 +315,7 @@
 		/* Check if we are freeing stuff */
 		if (do_free) {
 			if (bp->page) {
-				(void)memset(bp->page, 0, hashp->BSIZE);
+				(void)memset(bp->page, 0, (unsigned)hashp->BSIZE);
 				free(bp->page);
 			}
 			BUF_REMOVE(bp);

Reply via email to