diff options
Diffstat (limited to 'src/androidselect.c')
| -rw-r--r-- | src/androidselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/androidselect.c b/src/androidselect.c index 3ba3058aeb9..5b23c559d2c 100644 --- a/src/androidselect.c +++ b/src/androidselect.c | |||
| @@ -446,7 +446,7 @@ does not have any corresponding data. In that case, use | |||
| 446 | { | 446 | { |
| 447 | rc = emacs_read_quit (fd, start, BUFSIZ); | 447 | rc = emacs_read_quit (fd, start, BUFSIZ); |
| 448 | 448 | ||
| 449 | if (!INT_ADD_OK (rc, length, &length) | 449 | if (ckd_add (&length, length, rc) |
| 450 | || PTRDIFF_MAX - length < BUFSIZ) | 450 | || PTRDIFF_MAX - length < BUFSIZ) |
| 451 | memory_full (PTRDIFF_MAX); | 451 | memory_full (PTRDIFF_MAX); |
| 452 | 452 | ||
| @@ -588,7 +588,7 @@ android_notifications_notify_1 (Lisp_Object title, Lisp_Object body, | |||
| 588 | if (NILP (replaces_id)) | 588 | if (NILP (replaces_id)) |
| 589 | { | 589 | { |
| 590 | /* Generate a new identifier. */ | 590 | /* Generate a new identifier. */ |
| 591 | INT_ADD_WRAPV (counter, 1, &counter); | 591 | ckd_add (&counter, counter, 1); |
| 592 | id = counter; | 592 | id = counter; |
| 593 | } | 593 | } |
| 594 | else | 594 | else |