Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Correct copy count. This affects ``left-to-ri...



details:   https://anonhg.NetBSD.org/src/rev/a606abf7dd1c
branches:  trunk
changeset: 462961:a606abf7dd1c
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Aug 02 04:31:54 2019 +0000

description:
Correct copy count. This affects ``left-to-right'' copy for region
including word boundary.

diffstat:

 sys/dev/rasops/rasops_bitops.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 45857c2c15b3 -r a606abf7dd1c sys/dev/rasops/rasops_bitops.h
--- a/sys/dev/rasops/rasops_bitops.h    Fri Aug 02 04:26:44 2019 +0000
+++ b/sys/dev/rasops/rasops_bitops.h    Fri Aug 02 04:31:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops_bitops.h,v 1.20 2019/08/02 04:26:44 rin Exp $   */
+/*     $NetBSD: rasops_bitops.h,v 1.21 2019/08/02 04:31:54 rin Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -270,7 +270,7 @@
        rnum = (dst + num) & 31;
 
        if (lmask)
-               full = (num - (32 - (dst & 31))) >> 5;
+               full = (num - lnum) >> 5;
        else
                full = num >> 5;
 



Home | Main Index | Thread Index | Old Index