fix -Wsign-compare issue (on alpha)

This commit is contained in:
lukem 2009-02-16 05:22:00 +00:00
parent b85aa1ea53
commit e95441b0ce

View File

@ -1,4 +1,4 @@
/* $NetBSD: nlist_ecoff.c,v 1.15 2006/10/23 15:27:41 he Exp $ */
/* $NetBSD: nlist_ecoff.c,v 1.16 2009/02/16 05:22:00 lukem 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.15 2006/10/23 15:27:41 he Exp $");
__RCSID("$NetBSD: nlist_ecoff.c,v 1.16 2009/02/16 05:22:00 lukem Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@ -93,7 +93,7 @@ __fdnlist_ecoff(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;
}