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
f62ab7c5
Commit
f62ab7c5
authored
Aug 29, 2008
by
Eli Zaretskii
Browse files
(font_fill_lglyph_metrics): Use EMACS_INT in LGLYPH_SET_CODE to avoid
compiler warnings.
parent
39824137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/font.c
src/font.c
+5
-2
No files found.
src/font.c
View file @
f62ab7c5
...
...
@@ -4195,10 +4195,13 @@ font_fill_lglyph_metrics (glyph, font_object)
Lisp_Object
glyph
,
font_object
;
{
struct
font
*
font
=
XFONT_OBJECT
(
font_object
);
unsigned
code
=
font
->
driver
->
encode_char
(
font
,
LGLYPH_CHAR
(
glyph
));
unsigned
code
;
/* ecode used in LGLYPH_SET_CODE to avoid compiler warnings. */
EMACS_INT
ecode
=
font
->
driver
->
encode_char
(
font
,
LGLYPH_CHAR
(
glyph
));
struct
font_metrics
metrics
;
LGLYPH_SET_CODE
(
glyph
,
code
);
LGLYPH_SET_CODE
(
glyph
,
ecode
);
code
=
ecode
;
font
->
driver
->
text_extents
(
font
,
&
code
,
1
,
&
metrics
);
LGLYPH_SET_LBEARING
(
glyph
,
metrics
.
lbearing
);
LGLYPH_SET_RBEARING
(
glyph
,
metrics
.
rbearing
);
...
...
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