diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-01 23:07:40 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-04-01 23:07:40 +0000 |
commit | 3ab364ce24082af0f8ba5d7b65c936dd55722c93 (patch) | |
tree | ca159719b080973f462bd869b811081b47b72260 /src/marker.c | |
parent | d41d5dd4a2df300a59d575799dc0d49042d6ef53 (diff) | |
download | emacs-3ab364ce24082af0f8ba5d7b65c936dd55722c93.tar.gz |
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE.
Diffstat (limited to 'src/marker.c')
-rw-r--r-- | src/marker.c | 8 |
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) 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 @@ buf_bytepos_to_charpos (b, bytepos) 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)); |