Module Name:    src
Committed By:   mrg
Date:           Sun Sep 29 00:10:02 UTC 2019

Modified Files:
        src/sys/external/bsd/common/include/linux: kernel.h

Log Message:
fix another sign compare warning:

cast 'int ret' to size_t when comparing against another size_t
and 'ret' has known to be 0 or positive.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/external/bsd/common/include/linux/kernel.h

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

Modified files:

Index: src/sys/external/bsd/common/include/linux/kernel.h
diff -u src/sys/external/bsd/common/include/linux/kernel.h:1.21 src/sys/external/bsd/common/include/linux/kernel.h:1.22
--- src/sys/external/bsd/common/include/linux/kernel.h:1.21	Mon Aug 27 14:48:07 2018
+++ src/sys/external/bsd/common/include/linux/kernel.h	Sun Sep 29 00:10:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kernel.h,v 1.21 2018/08/27 14:48:07 riastradh Exp $	*/
+/*	$NetBSD: kernel.h,v 1.22 2019/09/29 00:10:02 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -165,7 +165,7 @@ vscnprintf(char *buf, size_t size, const
 		return ret;
 	if (__predict_false(size == 0))
 		return 0;
-	if (__predict_false(size <= ret))
+	if (__predict_false(size <= (size_t)ret))
 		return (size - 1);
 
 	return ret;

Reply via email to