diff options
author | Andreas Schwab <[email protected]> | 1998-10-30 10:20:25 +0000 |
---|---|---|
committer | Andreas Schwab <[email protected]> | 1998-10-30 10:20:25 +0000 |
commit | 8b835738fdccc93404786679c12e73742239a0f5 (patch) | |
tree | 6697728de9da11ead5e5757acb6aea1f952470cd /src | |
parent | 377127ce1248b5f148ae349cc50944c032fcf7be (diff) |
(Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
when we have both char and byte position. Fix type clashes.
Diffstat (limited to 'src')
-rw-r--r-- | src/fns.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2839,7 +2839,7 @@ into shorter lines.") /* 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 @@ into shorter lines.") 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. */ |