Mercurial > emacs
changeset 43144:69a3fef3cb46
(get_charset_id): Use if-else instead of ?:.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 06 Feb 2002 19:12:14 +0000 |
parents | 240dadbd3381 |
children | 977693cfea39 |
files | src/charset.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/charset.c Wed Feb 06 18:42:56 2002 +0000 +++ b/src/charset.c Wed Feb 06 19:12:14 2002 +0000 @@ -597,11 +597,15 @@ Lisp_Object val; int charset; - return ((SYMBOLP (charset_symbol) - && (val = Fget (charset_symbol, Qcharset), VECTORP (val)) - && (charset = XINT (XVECTOR (val)->contents[CHARSET_ID_IDX]), - CHARSET_VALID_P (charset))) - ? charset : -1); + /* This originally used a ?: operator, but reportedly the HP-UX + compiler version HP92453-01 A.10.32.22 miscompiles that. */ + if (SYMBOLP (charset_symbol) + && VECTORP (val = Fget (charset_symbol, Qcharset)) + && CHARSET_VALID_P (charset = + XINT (XVECTOR (val)->contents[CHARSET_ID_IDX]))) + return charset; + else + return -1; } /* Return an identification number for a new private charset of