[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
XCHAR2B_BYTE[12] definitions in NS
From: |
Daiki Ueno |
Subject: |
XCHAR2B_BYTE[12] definitions in NS |
Date: |
Tue, 15 Jul 2014 18:02:50 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Hi,
While I'm doing some experiment based on the NS port, I sometimes get
unexpected glyph index, because of missing parentheses in
XCHAR2B_BYTE[12] definitions (patch attached). I believe those macros
are not actually used by the NS port, but maybe good to fix it to avoid
any confusion. OK to commit, or perhaps they should be completely
removed?
=== modified file 'src/ChangeLog'
--- src/ChangeLog 2014-07-14 19:23:18 +0000
+++ src/ChangeLog 2014-07-15 08:48:30 +0000
@@ -1,3 +1,9 @@
+2014-07-15 Daiki Ueno <address@hidden>
+
+ * nsgui.h (XCHAR2B_BYTE1): Add missing parentheses around
+ pointer argument, before dereferencing.
+ (XCHAR2B_BYTE2): Likewise.
+
2014-07-14 Paul Eggert <address@hidden>
Use binary-io module, O_BINARY, and "b" flag (Bug#18006).
=== modified file 'src/nsgui.h'
--- src/nsgui.h 2014-06-02 18:01:21 +0000
+++ src/nsgui.h 2014-07-15 06:40:08 +0000
@@ -68,10 +68,10 @@
(*(chp) = ((XChar2b)((((b1) & 0x00ff) << 8) | ((b2) & 0x00ff))))
#define XCHAR2B_BYTE1(chp) \
- (((*chp) & 0xff00) >> 8)
+ ((*(chp) & 0xff00) >> 8)
#define XCHAR2B_BYTE2(chp) \
- ((*chp) & 0x00ff)
+ (*(chp) & 0x00ff)
/* XXX: xfaces requires these structures, but the question is are we
Regards,
--
Daiki Ueno
- XCHAR2B_BYTE[12] definitions in NS,
Daiki Ueno <=