Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/iomd Parenthesise arguments to VIDC_BLUE and VI...



details:   https://anonhg.NetBSD.org/src/rev/9eb1fe300313
branches:  trunk
changeset: 532852:9eb1fe300313
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Jun 16 14:53:24 2002 +0000

description:
Parenthesise arguments to VIDC_BLUE and VIDC_GREEN correctly.

diffstat:

 sys/arch/arm/iomd/vidc.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 1dcfb5ad0c90 -r 9eb1fe300313 sys/arch/arm/iomd/vidc.h
--- a/sys/arch/arm/iomd/vidc.h  Sun Jun 16 14:43:46 2002 +0000
+++ b/sys/arch/arm/iomd/vidc.h  Sun Jun 16 14:53:24 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vidc.h,v 1.3 2002/03/30 17:10:31 reinoud Exp $ */
+/*     $NetBSD: vidc.h,v 1.4 2002/06/16 14:53:24 bjh21 Exp $   */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe.
@@ -106,8 +106,8 @@
 /* VIDC palette macros */
 
 #define VIDC_RED(r)   (r)
-#define VIDC_GREEN(g) (g << 8)
-#define VIDC_BLUE(b)  (b << 16)
+#define VIDC_GREEN(g) ((g) << 8)
+#define VIDC_BLUE(b)  ((b) << 16)
 #define VIDC_COL(r, g, b) (VIDC_RED(r) | VIDC_GREEN(g) | VIDC_BLUE(b))
 
 



Home | Main Index | Thread Index | Old Index