Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/dev/cgd Missed a spot -- one more 32-bit sign-compare ...
details: https://anonhg.NetBSD.org/src/rev/670a1b338e7d
branches: trunk
changeset: 935326:670a1b338e7d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jun 30 04:17:31 2020 +0000
description:
Missed a spot -- one more 32-bit sign-compare issue.
diffstat:
tests/dev/cgd/t_cgd_adiantum.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 827e05115de1 -r 670a1b338e7d tests/dev/cgd/t_cgd_adiantum.c
--- a/tests/dev/cgd/t_cgd_adiantum.c Tue Jun 30 04:15:46 2020 +0000
+++ b/tests/dev/cgd/t_cgd_adiantum.c Tue Jun 30 04:17:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cgd_adiantum.c,v 1.2 2020/06/30 04:15:46 riastradh Exp $ */
+/* $NetBSD: t_cgd_adiantum.c,v 1.3 2020/06/30 04:17:31 riastradh Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -348,7 +348,7 @@
RL(nwrit = rump_sys_pwrite(cgdfd, C[i].ptxt, C[i].secsize,
C[i].blkno * C[i].secsize));
RL(unconfigure_cgd(cgdfd));
- if (nwrit != C[i].secsize) {
+ if ((size_t)nwrit != C[i].secsize) {
atf_tc_fail_nonfatal("truncated write: %zd != %u",
nwrit, C[i].secsize);
continue;
Home |
Main Index |
Thread Index |
Old Index