Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen cast to size_t
details: https://anonhg.NetBSD.org/src/rev/c19a163da34e
branches: trunk
changeset: 778220:c19a163da34e
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 20 00:16:35 2012 +0000
description:
cast to size_t
diffstat:
lib/libc/gen/nlist_ecoff.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ccd91534138a -r c19a163da34e lib/libc/gen/nlist_ecoff.c
--- a/lib/libc/gen/nlist_ecoff.c Tue Mar 20 00:03:12 2012 +0000
+++ b/lib/libc/gen/nlist_ecoff.c Tue Mar 20 00:16:35 2012 +0000
@@ -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 @@
#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)
Home |
Main Index |
Thread Index |
Old Index