diff options
| author | Ken Raeburn | 2000-04-08 19:33:36 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2000-04-08 19:33:36 +0000 |
| commit | f32318377bef5e5b07c0396fd77c3c7b0c107c82 (patch) | |
| tree | 9a53d4a3c7ec1473d8ccad45f398d31e812e2d19 /src | |
| parent | d35bee0ea6fd4db8a1ff830a34d64b4ffc87ccb4 (diff) | |
| download | emacs-f32318377bef5e5b07c0396fd77c3c7b0c107c82.tar.gz emacs-f32318377bef5e5b07c0396fd77c3c7b0c107c82.zip | |
(make_fontset_for_ascii_face): Use XINT on return value.
(Fset_fontset_font): Use EQ to compare lisp objects.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fontset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontset.c b/src/fontset.c index 0259b3e310d..00b605a6496 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -516,7 +516,7 @@ make_fontset_for_ascii_face (f, base_fontset_id) | |||
| 516 | base_fontset = Vdefault_fontset; | 516 | base_fontset = Vdefault_fontset; |
| 517 | 517 | ||
| 518 | fontset = make_fontset (frame, Qnil, base_fontset); | 518 | fontset = make_fontset (frame, Qnil, base_fontset); |
| 519 | return FONTSET_ID (fontset); | 519 | return XINT (FONTSET_ID (fontset)); |
| 520 | } | 520 | } |
| 521 | 521 | ||
| 522 | 522 | ||
| @@ -1032,7 +1032,7 @@ of a font for CHAR.") | |||
| 1032 | 1032 | ||
| 1033 | CHECK_STRING (fontname, 2); | 1033 | CHECK_STRING (fontname, 2); |
| 1034 | fontname = Fdowncase (fontname); | 1034 | fontname = Fdowncase (fontname); |
| 1035 | if (fontset == Vdefault_fontset) | 1035 | if (EQ (fontset, Vdefault_fontset)) |
| 1036 | { | 1036 | { |
| 1037 | if (!check_registry_encoding (fontname)) | 1037 | if (!check_registry_encoding (fontname)) |
| 1038 | error ("Invalid registry and encoding name: %s", | 1038 | error ("Invalid registry and encoding name: %s", |