# HG changeset patch # User Stefan Monnier # Date 1017702460 0 # Node ID ed296e71aa6454a5149f2ce75c61c485b864f363 # Parent 1e166973cd8bd5b491853b5c86bb13ef866e1063 (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE. diff -r 1e166973cd8b -r ed296e71aa64 src/marker.c --- a/src/marker.c Mon Apr 01 23:06:21 2002 +0000 +++ b/src/marker.c Mon Apr 01 23:07:40 2002 +0000 @@ -149,8 +149,8 @@ if (best_above == best_above_byte) return charpos; - best_below = 1; - best_below_byte = 1; + best_below = BEG; + best_below_byte = BEG_BYTE; /* We find in best_above and best_above_byte the closest known point above CHARPOS, @@ -326,8 +326,8 @@ if (best_above == best_above_byte) return bytepos; - best_below = 1; - best_below_byte = 1; + best_below = BEG; + best_below_byte = BEG_BYTE; CONSIDER (BUF_PT_BYTE (b), BUF_PT (b)); CONSIDER (BUF_GPT_BYTE (b), BUF_GPT (b));