# HG changeset patch # User Andreas Schwab # Date 909742825 0 # Node ID 3d1bb0100afbd66cd94c7ad4bbfcd37153fe40f9 # Parent a4b29402f7612b9f4763f969c18b6fdd2d485c59 (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT when we have both char and byte position. Fix type clashes. diff -r a4b29402f761 -r 3d1bb0100afb src/fns.c --- a/src/fns.c Fri Oct 30 10:14:50 1998 +0000 +++ b/src/fns.c Fri Oct 30 10:20:25 1998 +0000 @@ -2839,7 +2839,7 @@ /* Now we have encoded the region, so we insert the new contents and delete the old. (Insert first in order to preserve markers.) */ - SET_PT (beg); + SET_PT_BOTH (XFASTINT (beg), ibeg); insert (encoded, encoded_length); del_range_byte (ibeg + encoded_length, iend + encoded_length, 1); @@ -2847,8 +2847,8 @@ move to the beginning of the region. */ if (old_pos >= XFASTINT (end)) old_pos += encoded_length - (XFASTINT (end) - XFASTINT (beg)); - else if (old_pos > beg) - old_pos = beg; + else if (old_pos > XFASTINT (beg)) + old_pos = XFASTINT (beg); SET_PT (old_pos); /* We return the length of the encoded text. */