summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/fbreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fb/fbreg.h')
-rw-r--r--sys/dev/fb/fbreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/fb/fbreg.h b/sys/dev/fb/fbreg.h
index ac9a6c3..c9689d3 100644
--- a/sys/dev/fb/fbreg.h
+++ b/sys/dev/fb/fbreg.h
@@ -39,6 +39,7 @@
static __inline void
copyw(uint16_t *src, uint16_t *dst, size_t size)
{
+ size >>= 1;
while (size--)
*dst++ = *src++;
}
OpenPOWER on IntegriCloud