Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Fix signed/unsigned comp...



details:   https://anonhg.NetBSD.org/src/rev/24c3a9e8b778
branches:  trunk
changeset: 459851:24c3a9e8b778
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 28 12:34:56 2019 +0000

description:
Fix signed/unsigned comparison

diffstat:

 sys/external/bsd/drm2/include/linux/atomic.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3488dce49b32 -r 24c3a9e8b778 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Sat Sep 28 11:24:10 2019 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Sat Sep 28 12:34:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.20 2019/01/27 02:08:43 pgoyette Exp $     */
+/*     $NetBSD: atomic.h,v 1.21 2019/09/28 12:34:56 christos Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -180,7 +180,7 @@
                if (value == zero)
                        break;
        } while (atomic_cas_uint(&atomic->a_u.au_uint, value, (value + addend))
-           != value);
+           != (unsigned)value);
        smp_mb__after_atomic();
 
        return value != zero;



Home | Main Index | Thread Index | Old Index