aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab1998-10-30 10:20:25 +0000
committerAndreas Schwab1998-10-30 10:20:25 +0000
commit8b835738fdccc93404786679c12e73742239a0f5 (patch)
tree6697728de9da11ead5e5757acb6aea1f952470cd /src
parent377127ce1248b5f148ae349cc50944c032fcf7be (diff)
downloademacs-8b835738fdccc93404786679c12e73742239a0f5.tar.gz
emacs-8b835738fdccc93404786679c12e73742239a0f5.zip
(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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fns.c b/src/fns.c
index 22c9ac41d1f..c60303acec6 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2839,7 +2839,7 @@ into shorter lines.")
2839 2839
2840 /* Now we have encoded the region, so we insert the new contents 2840 /* Now we have encoded the region, so we insert the new contents
2841 and delete the old. (Insert first in order to preserve markers.) */ 2841 and delete the old. (Insert first in order to preserve markers.) */
2842 SET_PT (beg); 2842 SET_PT_BOTH (XFASTINT (beg), ibeg);
2843 insert (encoded, encoded_length); 2843 insert (encoded, encoded_length);
2844 del_range_byte (ibeg + encoded_length, iend + encoded_length, 1); 2844 del_range_byte (ibeg + encoded_length, iend + encoded_length, 1);
2845 2845
@@ -2847,8 +2847,8 @@ into shorter lines.")
2847 move to the beginning of the region. */ 2847 move to the beginning of the region. */
2848 if (old_pos >= XFASTINT (end)) 2848 if (old_pos >= XFASTINT (end))
2849 old_pos += encoded_length - (XFASTINT (end) - XFASTINT (beg)); 2849 old_pos += encoded_length - (XFASTINT (end) - XFASTINT (beg));
2850 else if (old_pos > beg) 2850 else if (old_pos > XFASTINT (beg))
2851 old_pos = beg; 2851 old_pos = XFASTINT (beg);
2852 SET_PT (old_pos); 2852 SET_PT (old_pos);
2853 2853
2854 /* We return the length of the encoded text. */ 2854 /* We return the length of the encoded text. */