summaryrefslogtreecommitdiff
path: root/sys/dev/rasops
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2013-05-21 15:57:21 +0000
committertsutsui <tsutsui@NetBSD.org>2013-05-21 15:57:21 +0000
commitd433c8db5cae792a74f59b910f15bda628dd9514 (patch)
treeaabe6ee9e04b36febdaf53929916d92d68376b4c /sys/dev/rasops
parent4335a45bee9729486cf0a408e5ef19affe1bf78e (diff)
Fix another typo which causes decrement against a NULL pointer.
Also revert rev 1.9, which shut up gcc's "uninitialized variable" warning that actually pointed out the typo correctly. Oh well.
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r--sys/dev/rasops/rasops_bitops.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/rasops/rasops_bitops.h b/sys/dev/rasops/rasops_bitops.h
index 4defcc9d528..5b12a8243a6 100644
--- a/sys/dev/rasops/rasops_bitops.h
+++ b/sys/dev/rasops/rasops_bitops.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops_bitops.h,v 1.13 2013/05/21 15:50:09 tsutsui Exp $ */
+/* $NetBSD: rasops_bitops.h,v 1.14 2013/05/21 15:57:21 tsutsui Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -205,8 +205,6 @@ NAME(copycols)(void *cookie, int row, int src, int dst, int num)
int32_t *sp, *dp, *srp, *drp, *dhp = NULL, *hp = NULL;
struct rasops_info *ri;
- sp = NULL; /* XXX gcc */
-
ri = (struct rasops_info *)cookie;
#ifdef RASOPS_CLIPPING
@@ -294,7 +292,7 @@ NAME(copycols)(void *cookie, int row, int src, int dst, int num)
db = dst & 31;
if ((src -= db) < 0) {
- sp--;
+ srp--;
src += 32;
}