aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/marker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/marker.c b/src/marker.c
index 475e5ffad6d..9d24fb5ff8e 100644
--- a/src/marker.c
+++ b/src/marker.c
@@ -149,8 +149,8 @@ buf_charpos_to_bytepos (b, charpos)
149 if (best_above == best_above_byte) 149 if (best_above == best_above_byte)
150 return charpos; 150 return charpos;
151 151
152 best_below = 1; 152 best_below = BEG;
153 best_below_byte = 1; 153 best_below_byte = BEG_BYTE;
154 154
155 /* We find in best_above and best_above_byte 155 /* We find in best_above and best_above_byte
156 the closest known point above CHARPOS, 156 the closest known point above CHARPOS,
@@ -326,8 +326,8 @@ buf_bytepos_to_charpos (b, bytepos)
326 if (best_above == best_above_byte) 326 if (best_above == best_above_byte)
327 return bytepos; 327 return bytepos;
328 328
329 best_below = 1; 329 best_below = BEG;
330 best_below_byte = 1; 330 best_below_byte = BEG_BYTE;
331 331
332 CONSIDER (BUF_PT_BYTE (b), BUF_PT (b)); 332 CONSIDER (BUF_PT_BYTE (b), BUF_PT (b));
333 CONSIDER (BUF_GPT_BYTE (b), BUF_GPT (b)); 333 CONSIDER (BUF_GPT_BYTE (b), BUF_GPT (b));