Mercurial > hg > xemacs-beta
diff src/regex.c @ 4530:9b182263dbd7 bytecomp-coding-system-2008-10-29
Merge bytecomp-coding-system-2008-10-29.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sun, 02 Nov 2008 03:11:29 +0900 |
parents | 8418d1ad4944 |
children | b5f21bb36684 |
line wrap: on
line diff
--- a/src/regex.c Wed Oct 29 12:59:48 2008 +0900 +++ b/src/regex.c Sun Nov 02 03:11:29 2008 +0900 @@ -4313,8 +4313,8 @@ { if (!BUFFERP (lispobj)) return -1; - range = (BUF_PT (XBUFFER (lispobj)) - BUF_BEGV (XBUFFER (lispobj)) - - startpos); + range = (BYTE_BUF_PT (XBUFFER (lispobj)) + - BYTE_BUF_BEGV (XBUFFER (lispobj)) - startpos); if (range < 0) return -1; }