Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c5958d4c
Commit
c5958d4c
authored
Jun 12, 2011
by
Paul Eggert
Browse files
* character.c (char_string): Remove unnecessary casts.
parent
13bdea59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/ChangeLog
src/ChangeLog
+1
-0
src/character.c
src/character.c
+1
-1
No files found.
src/ChangeLog
View file @
c5958d4c
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* character.c (char_string): Remove unnecessary casts.
Make sure a 64-bit char is never passed to CHAR_STRING.
Otherwise, CHAR_STRING would do the wrong thing on a 64-bit platform,
...
...
src/character.c
View file @
c5958d4c
...
...
@@ -123,7 +123,7 @@ char_string (unsigned int c, unsigned char *p)
if
(
c
&
CHAR_MODIFIER_MASK
)
{
c
=
(
unsigned
)
char_resolve_modifier_mask
(
(
int
)
c
);
c
=
char_resolve_modifier_mask
(
c
);
/* If C still has any modifier bits, just ignore it. */
c
&=
~
CHAR_MODIFIER_MASK
;
}
...
...
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