diff options
Diffstat (limited to 'src/textconv.c')
-rw-r--r-- | src/textconv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textconv.c b/src/textconv.c index d5db6d11717..7ed8ede3544 100644 --- a/src/textconv.c +++ b/src/textconv.c @@ -125,7 +125,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) overflows, move back to point or to the extremes of the accessible region. */ - if (INT_ADD_WRAPV (pos, query->position, &pos)) + if (ckd_add (&pos, pos, query->position)) pos = PT; if (pos < BEGV) @@ -145,7 +145,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) { case TEXTCONV_FORWARD_CHAR: /* Move forward by query->factor characters. */ - if (INT_ADD_WRAPV (pos, query->factor, &end) || end > ZV) + if (ckd_add (&end, pos, query->factor) || end > ZV) end = ZV; end_byte = CHAR_TO_BYTE (end); @@ -153,7 +153,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) case TEXTCONV_BACKWARD_CHAR: /* Move backward by query->factor characters. */ - if (INT_SUBTRACT_WRAPV (pos, query->factor, &end) || end < BEGV) + if (ckd_sub (&end, pos, query->factor) || end < BEGV) end = BEGV; end_byte = CHAR_TO_BYTE (end); |