Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 fix sign-compare.



details:   https://anonhg.NetBSD.org/src/rev/1f5da3fca6b5
branches:  trunk
changeset: 459857:1f5da3fca6b5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 28 15:15:34 2019 +0000

description:
fix sign-compare.

diffstat:

 sys/compat/netbsd32/netbsd32_drm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8e95f0780de3 -r 1f5da3fca6b5 sys/compat/netbsd32/netbsd32_drm.c
--- a/sys/compat/netbsd32/netbsd32_drm.c        Sat Sep 28 15:15:09 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_drm.c        Sat Sep 28 15:15:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_drm.c,v 1.3 2019/08/20 14:26:05 christos Exp $ */
+/*     $NetBSD: netbsd32_drm.c,v 1.4 2019/09/28 15:15:34 christos Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_drm.c,v 1.3 2019/08/20 14:26:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_drm.c,v 1.4 2019/09/28 15:15:34 christos Exp $");
 
 #include <compat/netbsd32/netbsd32.h>
 #include <compat/netbsd32/netbsd32_ioctl.h>
@@ -345,7 +345,7 @@
        if (error)
                return error;
 
-       for (int i = 0; i < st64.count; ++i) {
+       for (size_t i = 0; i < st64.count; ++i) {
                st32.data[i].value = st64.data[i].value;
                st32.data[i].type = st64.data[i].type;
        }



Home | Main Index | Thread Index | Old Index