diff options
| author | mrg <mrg@NetBSD.org> | 2019-09-29 00:10:02 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2019-09-29 00:10:02 +0000 |
| commit | 170641a11b709ecb3d12198b8a39ff30e94468db (patch) | |
| tree | 6048d2670670252fe4bd34f6fe375ac410e479d9 /sys/external/bsd/common/include/linux | |
| parent | 5cc892098dd05d6dcede58aa10445ef30e746a14 (diff) | |
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.
Diffstat (limited to 'sys/external/bsd/common/include/linux')
| -rw-r--r-- | sys/external/bsd/common/include/linux/kernel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/external/bsd/common/include/linux/kernel.h b/sys/external/bsd/common/include/linux/kernel.h index cb53794e025..44a009f2e07 100644 --- a/sys/external/bsd/common/include/linux/kernel.h +++ b/sys/external/bsd/common/include/linux/kernel.h @@ -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 char *fmt, va_list va) 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; |
