diff options
| author | Kenichi Handa | 2003-10-06 11:20:45 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-10-06 11:20:45 +0000 |
| commit | 05d6275c2e933ab408781ff093674663ae302750 (patch) | |
| tree | 24f86c058cc572914f045d4b09d757503e5871d8 | |
| parent | 96f45cf0a726fbf8248ab9f1a1d68c7da20ce8cf (diff) | |
| download | emacs-05d6275c2e933ab408781ff093674663ae302750.tar.gz emacs-05d6275c2e933ab408781ff093674663ae302750.zip | |
(char_table_translate): Use CHARACTERP, not INETEGERP.
| -rw-r--r-- | src/chartab.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chartab.c b/src/chartab.c index 0004aa6cfb2..a70eddeec49 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -642,8 +642,7 @@ This function is obsolete and has no effect. */) | |||
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | /* Look up the element in TABLE at index CH, and return it as an | 644 | /* Look up the element in TABLE at index CH, and return it as an |
| 645 | integer. If the element is nil, return CH itself. (Actually we do | 645 | integer. If the element is not a character, return CH itself. */ |
| 646 | that for any non-integer.) */ | ||
| 647 | 646 | ||
| 648 | int | 647 | int |
| 649 | char_table_translate (table, ch) | 648 | char_table_translate (table, ch) |
| @@ -652,7 +651,7 @@ char_table_translate (table, ch) | |||
| 652 | { | 651 | { |
| 653 | Lisp_Object value; | 652 | Lisp_Object value; |
| 654 | value = Faref (table, make_number (ch)); | 653 | value = Faref (table, make_number (ch)); |
| 655 | if (! INTEGERP (value)) /* fixme: use CHARACTERP? */ | 654 | if (! CHARACTERP (value)) |
| 656 | return ch; | 655 | return ch; |
| 657 | return XINT (value); | 656 | return XINT (value); |
| 658 | } | 657 | } |