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 fixed signed compare.



details:   https://anonhg.NetBSD.org/src/rev/f15114b4a65a
branches:  trunk
changeset: 459855:f15114b4a65a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 28 15:13:08 2019 +0000

description:
fixed signed compare.

diffstat:

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

diffs (19 lines):

diff -r 291f90e9e34b -r f15114b4a65a sys/external/bsd/drm2/include/linux/sched.h
--- a/sys/external/bsd/drm2/include/linux/sched.h       Sat Sep 28 15:11:53 2019 +0000
+++ b/sys/external/bsd/drm2/include/linux/sched.h       Sat Sep 28 15:13:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sched.h,v 1.12 2018/10/23 03:56:47 riastradh Exp $     */
+/*     $NetBSD: sched.h,v 1.13 2019/09/28 15:13:08 christos Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -62,7 +62,8 @@
        if (cold) {
                unsigned us;
                if (hz <= 1000) {
-                       unsigned ms = hztoms(MIN(timeout, mstohz(INT_MAX)));
+                       unsigned ms = hztoms(MIN((unsigned long)timeout,
+                           mstohz(INT_MAX)));
                        us = MIN(ms, INT_MAX/1000)*1000;
                } else if (hz <= 1000000) {
                        us = MIN(timeout, (INT_MAX/1000000)/hz)*hz*1000000;



Home | Main Index | Thread Index | Old Index