changeset 111236:b8c31a27c558

w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround chp by parentheses.
author Kenichi Handa <handa@m17n.org>
date Fri, 29 Oct 2010 11:01:41 +0900
parents 24c75a5f002a
children 6788b08ca420
files src/ChangeLog src/w32gui.h
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Oct 29 09:50:13 2010 +0900
+++ b/src/ChangeLog	Fri Oct 29 11:01:41 2010 +0900
@@ -1,3 +1,8 @@
+2010-10-29  Kenichi Handa  <handa@m17n.org>
+
+	* w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround
+	chp by parentheses.
+
 2010-10-28  Kenichi Handa  <handa@m17n.org>
 
 	Implement various display methods for glyphless characters.
--- a/src/w32gui.h	Fri Oct 29 09:50:13 2010 +0900
+++ b/src/w32gui.h	Fri Oct 29 11:01:41 2010 +0900
@@ -59,13 +59,13 @@
 
 /* Dealing with bits of wchar_t as if they were an XChar2b.  */
 #define STORE_XCHAR2B(chp, byte1, byte2) \
-  ((*chp) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff))))
+  ((*(chp)) = ((XChar2b)((((byte1) & 0x00ff) << 8) | ((byte2) & 0x00ff))))
 
 #define XCHAR2B_BYTE1(chp) \
- (((*chp) & 0xff00) >> 8)
+  (((*(chp)) & 0xff00) >> 8)
 
 #define XCHAR2B_BYTE2(chp) \
- ((*chp) & 0x00ff)
+  ((*(chp)) & 0x00ff)
 
 
 /* Windows equivalent of XImage.  */