diff --git a/lib/libc/gen/nlist_elf32.c b/lib/libc/gen/nlist_elf32.c index b6ba76fdb483..4b9df5c6bdc7 100644 --- a/lib/libc/gen/nlist_elf32.c +++ b/lib/libc/gen/nlist_elf32.c @@ -1,4 +1,4 @@ -/* $NetBSD: nlist_elf32.c,v 1.28 2005/06/12 05:21:27 lukem Exp $ */ +/* $NetBSD: nlist_elf32.c,v 1.29 2009/02/06 23:47:44 lukem Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: nlist_elf32.c,v 1.28 2005/06/12 05:21:27 lukem Exp $"); +__RCSID("$NetBSD: nlist_elf32.c,v 1.29 2009/02/06 23:47:44 lukem Exp $"); #endif /* LIBC_SCCS and not lint */ /* If not included by nlist_elf64.c, ELFSIZE won't be defined. */ @@ -110,7 +110,7 @@ ELFNAMEEND(__fdnlist)(fd, list) /* * Map the file in its entirety. */ - if (st.st_size > SIZE_T_MAX) { + if ((size_t)st.st_size > SIZE_T_MAX) { errno = EFBIG; BAD; }