diff options
| author | Richard M. Stallman | 2001-11-05 03:52:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-05 03:52:23 +0000 |
| commit | c1dd95fcc145ad942deb331b40594dc15207de71 (patch) | |
| tree | c65777a2b75ca2a7b440c1ddee4e86aa125872f7 | |
| parent | cf24f894b0e7410933ff7fc6e10469d39d281d4f (diff) | |
| download | emacs-c1dd95fcc145ad942deb331b40594dc15207de71.tar.gz emacs-c1dd95fcc145ad942deb331b40594dc15207de71.zip | |
(Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
| -rw-r--r-- | src/fns.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -4776,11 +4776,11 @@ usage: (make-hash-table &rest KEYWORD-ARGS) */) | |||
| 4776 | Lisp_Object prop; | 4776 | Lisp_Object prop; |
| 4777 | 4777 | ||
| 4778 | prop = Fget (test, Qhash_table_test); | 4778 | prop = Fget (test, Qhash_table_test); |
| 4779 | if (!CONSP (prop) || XFASTINT (Flength (prop)) < 2) | 4779 | if (!CONSP (prop) || !CONSP (XCDR (prop))) |
| 4780 | Fsignal (Qerror, list2 (build_string ("Invalid hash table test"), | 4780 | Fsignal (Qerror, list2 (build_string ("Invalid hash table test"), |
| 4781 | test)); | 4781 | test)); |
| 4782 | user_test = Fnth (make_number (0), prop); | 4782 | user_test = XCAR (prop); |
| 4783 | user_hash = Fnth (make_number (1), prop); | 4783 | user_hash = XCAR (XCDR (prop)); |
| 4784 | } | 4784 | } |
| 4785 | else | 4785 | else |
| 4786 | user_test = user_hash = Qnil; | 4786 | user_test = user_hash = Qnil; |