diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/macfont.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macfont.m b/src/macfont.m index 8abe203644b..3a1e9e5f477 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -908,7 +908,7 @@ macfont_descriptor_entity (CTFontDescriptorRef desc, Lisp_Object extra, | |||
| 908 | ASET (entity, FONT_EXTRA_INDEX, Fcopy_sequence (extra)); | 908 | ASET (entity, FONT_EXTRA_INDEX, Fcopy_sequence (extra)); |
| 909 | name = CTFontDescriptorCopyAttribute (desc, kCTFontNameAttribute); | 909 | name = CTFontDescriptorCopyAttribute (desc, kCTFontNameAttribute); |
| 910 | font_put_extra (entity, QCfont_entity, | 910 | font_put_extra (entity, QCfont_entity, |
| 911 | Fcons (make_mint_ptr (name), make_number (traits))); | 911 | Fcons (make_mint_ptr ((void *) name), make_number (traits))); |
| 912 | if (synth_sym_traits & kCTFontTraitItalic) | 912 | if (synth_sym_traits & kCTFontTraitItalic) |
| 913 | FONT_SET_STYLE (entity, FONT_SLANT_INDEX, | 913 | FONT_SET_STYLE (entity, FONT_SLANT_INDEX, |
| 914 | make_number (FONT_SLANT_SYNTHETIC_ITALIC)); | 914 | make_number (FONT_SLANT_SYNTHETIC_ITALIC)); |
| @@ -984,7 +984,7 @@ macfont_set_family_cache (Lisp_Object symbol, CFStringRef string) | |||
| 984 | 984 | ||
| 985 | h = XHASH_TABLE (macfont_family_cache); | 985 | h = XHASH_TABLE (macfont_family_cache); |
| 986 | i = hash_lookup (h, symbol, &hash); | 986 | i = hash_lookup (h, symbol, &hash); |
| 987 | value = string ? make_mint_ptr (CFRetain (string)) : Qnil; | 987 | value = string ? make_mint_ptr ((void *) CFRetain (string)) : Qnil; |
| 988 | if (i >= 0) | 988 | if (i >= 0) |
| 989 | { | 989 | { |
| 990 | Lisp_Object old_value = HASH_VALUE (h, i); | 990 | Lisp_Object old_value = HASH_VALUE (h, i); |