Module Name:    src
Committed By:   rin
Date:           Tue Nov 21 02:04:39 UTC 2017

Modified Files:
        src/external/bsd/nvi/dist/common: mem.h

Log Message:
Fix -Wsign-compare issue for BINC_GOTO in a similar manner to BINC_RET.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/nvi/dist/common/mem.h

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

Modified files:

Index: src/external/bsd/nvi/dist/common/mem.h
diff -u src/external/bsd/nvi/dist/common/mem.h:1.2 src/external/bsd/nvi/dist/common/mem.h:1.3
--- src/external/bsd/nvi/dist/common/mem.h:1.2	Fri Nov 22 15:52:05 2013
+++ src/external/bsd/nvi/dist/common/mem.h	Tue Nov 21 02:04:39 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: mem.h,v 1.2 2013/11/22 15:52:05 christos Exp $ */
+/*	$NetBSD: mem.h,v 1.3 2017/11/21 02:04:39 rin Exp $ */
 /*-
  * Copyright (c) 1993, 1994
  *	The Regents of the University of California.  All rights reserved.
@@ -23,7 +23,7 @@
 #define	BINC_GOTO(sp, type, lp, llen, nlen) {				\
 	CHECK_TYPE(type *, lp)						\
 	void *L__bincp;							\
-	if ((nlen) > llen) {						\
+	if ((size_t)(nlen) > llen) {					\
 		if ((L__bincp = binc(sp, lp, &(llen), nlen)) == NULL)	\
 			goto alloc_err;					\
 		/*							\

Reply via email to