comparison src/coding.c @ 48829:f6c59ca557c7

(Funencodable_char_position): Set pend correctly.
author Kenichi Handa <handa@m17n.org>
date Fri, 13 Dec 2002 02:35:51 +0000
parents c2ce8280fb97
children 3002a87cc629
comparison
equal deleted inserted replaced
48828:d74c4e3f225e 48829:f6c59ca557c7
6567 from = XINT (start); 6567 from = XINT (start);
6568 to = XINT (end); 6568 to = XINT (end);
6569 if (NILP (current_buffer->enable_multibyte_characters)) 6569 if (NILP (current_buffer->enable_multibyte_characters))
6570 return Qnil; 6570 return Qnil;
6571 p = CHAR_POS_ADDR (from); 6571 p = CHAR_POS_ADDR (from);
6572 pend = CHAR_POS_ADDR (to); 6572 if (to == GPT)
6573 pend = GPT_ADDR;
6574 else
6575 pend = CHAR_POS_ADDR (to);
6573 } 6576 }
6574 else 6577 else
6575 { 6578 {
6576 CHECK_STRING (string); 6579 CHECK_STRING (string);
6577 CHECK_NATNUM (start); 6580 CHECK_NATNUM (start);