diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 2 |
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. */ |