# HG changeset patch # User Kenichi Handa # Date 1288317701 -32400 # Node ID b8c31a27c55890a70eebf5aa56037ac1e7c7701f # Parent 24c75a5f002aa7679b0c4d8d8528562015e25726 w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround chp by parentheses. diff -r 24c75a5f002a -r b8c31a27c558 src/ChangeLog --- 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 + + * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): Surround + chp by parentheses. + 2010-10-28 Kenichi Handa Implement various display methods for glyphless characters. diff -r 24c75a5f002a -r b8c31a27c558 src/w32gui.h --- 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. */