Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9e1a06fc
Commit
9e1a06fc
authored
May 27, 2012
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last change in bidi_mirror_char.
parent
f3dd7312
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
src/ChangeLog
src/ChangeLog
+4
-0
src/bidi.c
src/bidi.c
+11
-1
No files found.
src/ChangeLog
View file @
9e1a06fc
2012-05-27 Eli Zaretskii <eliz@gnu.org>
* bidi.c (bidi_mirror_char): Fix last change.
2012-05-27 Andreas Schwab <schwab@linux-m68k.org>
* unexmacosx.c (copy_data_segment): Truncate after 16 characters
...
...
src/bidi.c
View file @
9e1a06fc
...
...
@@ -204,8 +204,18 @@ bidi_mirror_char (int c)
val
=
CHAR_TABLE_REF
(
bidi_mirror_table
,
c
);
if
(
INTEGERP
(
val
))
{
int
v
=
XINT
(
val
);
/* In a build with extra checks, make sure the value does not
overflow a 32-bit int. */
eassert
(
CHAR_VALID_P
(
XINT
(
val
)));
return
XINT
(
val
);
/* Minimal test we must do in optimized builds, to prevent weird
crashes further down the road. */
if
(
v
<
0
||
v
>
MAX_CHAR
)
abort
();
return
v
;
}
return
c
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment