Module Name:    src
Committed By:   christos
Date:           Tue Mar 20 00:16:35 UTC 2012

Modified Files:
        src/lib/libc/gen: nlist_ecoff.c

Log Message:
cast to size_t


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/nlist_ecoff.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/gen/nlist_ecoff.c
diff -u src/lib/libc/gen/nlist_ecoff.c:1.21 src/lib/libc/gen/nlist_ecoff.c:1.22
--- src/lib/libc/gen/nlist_ecoff.c:1.21	Mon Mar 19 20:03:12 2012
+++ src/lib/libc/gen/nlist_ecoff.c	Mon Mar 19 20:16:35 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_ecoff.c,v 1.21 2012/03/20 00:03:12 christos Exp $ */
+/* $NetBSD: nlist_ecoff.c,v 1.22 2012/03/20 00:16:35 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nlist_ecoff.c,v 1.21 2012/03/20 00:03:12 christos Exp $");
+__RCSID("$NetBSD: nlist_ecoff.c,v 1.22 2012/03/20 00:16:35 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -59,7 +59,7 @@ __RCSID("$NetBSD: nlist_ecoff.c,v 1.21 2
 
 #ifdef NLIST_ECOFF
 #define	check(off, size) \
-	(/*CONSTCOND*/(off < 0) || (off + size > mappedsize))
+	(/*CONSTCOND*/(off < 0) || ((size_t)(off + size) > mappedsize))
 
 int
 __fdnlist_ecoff(int fd, struct nlist *list)

Reply via email to