]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
authorRichard M. Stallman <rms@gnu.org>
Mon, 5 Nov 2001 03:52:23 +0000 (03:52 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 5 Nov 2001 03:52:23 +0000 (03:52 +0000)
src/fns.c

index 74208831ee2acbdc9d4f4595020e133e542f947b..880886071ded368d77448f6effd92b6eebab038f 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -4776,11 +4776,11 @@ usage: (make-hash-table &rest KEYWORD-ARGS)  */)
       Lisp_Object prop;
 
       prop = Fget (test, Qhash_table_test);
-      if (!CONSP (prop) || XFASTINT (Flength (prop)) < 2)
+      if (!CONSP (prop) || !CONSP (XCDR (prop)))
        Fsignal (Qerror, list2 (build_string ("Invalid hash table test"),
                                test));
-      user_test = Fnth (make_number (0), prop);
-      user_hash = Fnth (make_number (1), prop);
+      user_test = XCAR (prop);
+      user_hash = XCAR (XCDR (prop));
     }
   else
     user_test = user_hash = Qnil;