From 92eaa22e5dc223aec591a70eea0a00336d853f6b Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 7 Jan 2003 17:54:30 +0000 Subject: [PATCH] (skip_chars, skip_syntaxes): Fix type errors. --- src/syntax.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index cf3d3bd258a..32e5802beac 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -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); -- 2.39.2