diff src/editfns.c @ 13238:10a489bbf5c3

(Fchar_equal): Handle char-table as case table.
author Richard M. Stallman <rms@gnu.org>
date Wed, 18 Oct 1995 23:32:26 +0000
parents 1eab52043f10
children 186d80572f4f
line wrap: on
line diff
--- a/src/editfns.c	Wed Oct 18 23:30:32 1995 +0000
+++ b/src/editfns.c	Wed Oct 18 23:32:26 1995 +0000
@@ -1953,12 +1953,13 @@
   (c1, c2)
      register Lisp_Object c1, c2;
 {
-  unsigned char *downcase = DOWNCASE_TABLE;
+  Lisp_Object *downcase = DOWNCASE_TABLE;
   CHECK_NUMBER (c1, 0);
   CHECK_NUMBER (c2, 1);
 
   if (!NILP (current_buffer->case_fold_search)
-      ? (downcase[0xff & XFASTINT (c1)] == downcase[0xff & XFASTINT (c2)]
+      ? ((XINT (downcase[0xff & XFASTINT (c1)])
+	  == XINT (downcase[0xff & XFASTINT (c2)]))
 	 && (XFASTINT (c1) & ~0xff) == (XFASTINT (c2) & ~0xff))
       : XINT (c1) == XINT (c2))
     return Qt;