aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2011-06-08 18:10:27 -0700
committerPaul Eggert2011-06-08 18:10:27 -0700
commit8f95c75c34009a63ab9c04e99477f979cd417830 (patch)
treee69f8141f23f616e3e0e404ed935376eccfe2de0 /src/buffer.h
parent0ceccced4ed1496f9d5cd3b09732201ef3a0be39 (diff)
downloademacs-8f95c75c34009a63ab9c04e99477f979cd417830.tar.gz
emacs-8f95c75c34009a63ab9c04e99477f979cd417830.zip
* buffer.h (PTR_BYTE_POS): Don't assume a byte count fits in 'unsigned'.
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 3c91bdfe570..ba48a8105a2 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -337,7 +337,7 @@ while (0)
337 337
338#define PTR_BYTE_POS(ptr) \ 338#define PTR_BYTE_POS(ptr) \
339((ptr) - (current_buffer)->text->beg \ 339((ptr) - (current_buffer)->text->beg \
340 - (ptr - (current_buffer)->text->beg <= (unsigned) (GPT_BYTE - BEG_BYTE) ? 0 : GAP_SIZE) \ 340 - (ptr - (current_buffer)->text->beg <= (size_t) (GPT_BYTE - BEG_BYTE) ? 0 : GAP_SIZE) \
341 + BEG_BYTE) 341 + BEG_BYTE)
342 342
343/* Return character at byte position POS. */ 343/* Return character at byte position POS. */