diff options
Diffstat (limited to 'src/macfont.m')
| -rw-r--r-- | src/macfont.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/macfont.m b/src/macfont.m index c9a1edaec8b..d137648937c 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -2992,7 +2992,7 @@ macfont_shape (Lisp_Object lgstring) | |||
| 2992 | 2992 | ||
| 2993 | if (NILP (lglyph)) | 2993 | if (NILP (lglyph)) |
| 2994 | { | 2994 | { |
| 2995 | lglyph = Fmake_vector (make_fixnum (LGLYPH_SIZE), Qnil); | 2995 | lglyph = make_nil_vector (LGLYPH_SIZE); |
| 2996 | LGSTRING_SET_GLYPH (lgstring, i, lglyph); | 2996 | LGSTRING_SET_GLYPH (lgstring, i, lglyph); |
| 2997 | } | 2997 | } |
| 2998 | 2998 | ||
| @@ -3044,9 +3044,7 @@ macfont_shape (Lisp_Object lgstring) | |||
| 3044 | wadjust = lround (gl->advance); | 3044 | wadjust = lround (gl->advance); |
| 3045 | if (xoff != 0 || yoff != 0 || wadjust != metrics.width) | 3045 | if (xoff != 0 || yoff != 0 || wadjust != metrics.width) |
| 3046 | { | 3046 | { |
| 3047 | Lisp_Object vec; | 3047 | Lisp_Object vec = make_uninit_vector (3); |
| 3048 | |||
| 3049 | vec = Fmake_vector (make_fixnum (3), Qnil); | ||
| 3050 | ASET (vec, 0, make_fixnum (xoff)); | 3048 | ASET (vec, 0, make_fixnum (xoff)); |
| 3051 | ASET (vec, 1, make_fixnum (yoff)); | 3049 | ASET (vec, 1, make_fixnum (yoff)); |
| 3052 | ASET (vec, 2, make_fixnum (wadjust)); | 3050 | ASET (vec, 2, make_fixnum (wadjust)); |