]> git.eshelyaron.com Git - emacs.git/commitdiff
(skip_chars, skip_syntaxes): Fix type errors.
authorDave Love <fx@gnu.org>
Tue, 7 Jan 2003 17:54:30 +0000 (17:54 +0000)
committerDave Love <fx@gnu.org>
Tue, 7 Jan 2003 17:54:30 +0000 (17:54 +0000)
src/syntax.c

index cf3d3bd258a53c1a9e05a647ac4c120e18ab725a..32e5802beacf3080a7b38afd421b8dd33fe7bbbc 100644 (file)
@@ -1413,7 +1413,7 @@ skip_chars (forwardp, string, lim)
     XSETFASTINT (lim, BEGV);
 
   multibyte = (!NILP (current_buffer->enable_multibyte_characters)
-              && (lim - PT != CHAR_TO_BYTE (lim) - PT_BYTE));
+              && (XINT (lim) - PT != CHAR_TO_BYTE (XINT (lim)) - PT_BYTE));
   string_multibyte = STRING_BYTES (XSTRING (string)) > XSTRING (string)->size;
 
   bzero (fastmap, sizeof fastmap);
@@ -1732,10 +1732,10 @@ skip_syntaxes (forwardp, string, lim)
     XSETFASTINT (lim, BEGV);
 
   if (forwardp ? (PT >= XFASTINT (lim)) : (PT <= XFASTINT (lim)))
-    return 0;
+    return Qnil;
 
   multibyte = (!NILP (current_buffer->enable_multibyte_characters)
-              && (lim - PT != CHAR_TO_BYTE (lim) - PT_BYTE));
+              && (XINT (lim) - PT != CHAR_TO_BYTE (XINT (lim)) - PT_BYTE));
 
   bzero (fastmap, sizeof fastmap);