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) | |||
| 125 | overflows, move back to point or to the extremes of the | 125 | overflows, move back to point or to the extremes of the |
| 126 | accessible region. */ | 126 | accessible region. */ |
| 127 | 127 | ||
| 128 | if (INT_ADD_WRAPV (pos, query->position, &pos)) | 128 | if (ckd_add (&pos, pos, query->position)) |
| 129 | pos = PT; | 129 | pos = PT; |
| 130 | 130 | ||
| 131 | if (pos < BEGV) | 131 | if (pos < BEGV) |
| @@ -145,7 +145,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) | |||
| 145 | { | 145 | { |
| 146 | case TEXTCONV_FORWARD_CHAR: | 146 | case TEXTCONV_FORWARD_CHAR: |
| 147 | /* Move forward by query->factor characters. */ | 147 | /* Move forward by query->factor characters. */ |
| 148 | if (INT_ADD_WRAPV (pos, query->factor, &end) || end > ZV) | 148 | if (ckd_add (&end, pos, query->factor) || end > ZV) |
| 149 | end = ZV; | 149 | end = ZV; |
| 150 | 150 | ||
| 151 | end_byte = CHAR_TO_BYTE (end); | 151 | end_byte = CHAR_TO_BYTE (end); |
| @@ -153,7 +153,7 @@ textconv_query (struct frame *f, struct textconv_callback_struct *query) | |||
| 153 | 153 | ||
| 154 | case TEXTCONV_BACKWARD_CHAR: | 154 | case TEXTCONV_BACKWARD_CHAR: |
| 155 | /* Move backward by query->factor characters. */ | 155 | /* Move backward by query->factor characters. */ |
| 156 | if (INT_SUBTRACT_WRAPV (pos, query->factor, &end) || end < BEGV) | 156 | if (ckd_sub (&end, pos, query->factor) || end < BEGV) |
| 157 | end = BEGV; | 157 | end = BEGV; |
| 158 | 158 | ||
| 159 | end_byte = CHAR_TO_BYTE (end); | 159 | end_byte = CHAR_TO_BYTE (end); |