# HG changeset patch # User Richard M. Stallman # Date 897532386 0 # Node ID ac339ec4a12ab5295a44ae9a0bef0a1ba02601a7 # Parent aabf58b0a7240ed450f20b1611269683e41cf053 (Fforward_comment): Properly compute BYTEPOS arg to char_quoted. diff -r aabf58b0a724 -r ac339ec4a12a src/syntax.c --- a/src/syntax.c Wed Jun 10 21:00:58 1998 +0000 +++ b/src/syntax.c Thu Jun 11 02:33:06 1998 +0000 @@ -1608,7 +1608,6 @@ int comstyle = 0; /* style of comment encountered */ int found; int count1; - int temp_pos; int out_charpos, out_bytepos; CHECK_NUMBER (count, 0); @@ -1734,7 +1733,7 @@ comstart_second = SYNTAX_COMSTART_SECOND (c); if (from > stop && SYNTAX_COMEND_SECOND (c) && prev_char_comend_first (from, from_byte) - && !char_quoted (from - 1, temp_pos)) + && !char_quoted (from - 1, dec_bytepos (from_byte))) { /* We must record the comment style encountered so that later, we can match only the proper comment begin @@ -1747,7 +1746,7 @@ } if (from > stop && comstart_second && prev_char_comstart_first (from, from_byte) - && !char_quoted (from - 1, temp_pos)) + && !char_quoted (from - 1, dec_bytepos (from_byte))) { /* We must record the comment style encountered so that later, we can match only the proper comment begin