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/0d2f43dc518b
branches:  trunk
changeset: 454820:0d2f43dc518b
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 106277a4209e -r 0d2f43dc518b 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