diff options
| author | Paul Eggert | 2025-12-12 15:24:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-12-12 16:27:11 -0800 |
| commit | 41ffeaec15b9a0f052de2d2e5eab23302c4ce46b (patch) | |
| tree | a2e82875cc70f7881ba5627872fc8c11630256ec /lib/timespec-sub.c | |
| parent | 976143651b832ca0dcaf1d15e41eb7424aec4c90 (diff) | |
| download | emacs-41ffeaec15b9a0f052de2d2e5eab23302c4ce46b.tar.gz emacs-41ffeaec15b9a0f052de2d2e5eab23302c4ce46b.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/timespec-sub.c')
| -rw-r--r-- | lib/timespec-sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timespec-sub.c b/lib/timespec-sub.c index 7cde18be90c..df51a49c215 100644 --- a/lib/timespec-sub.c +++ b/lib/timespec-sub.c | |||
| @@ -33,8 +33,8 @@ timespec_sub (struct timespec a, struct timespec b) | |||
| 33 | int nsdiff = a.tv_nsec - b.tv_nsec; | 33 | int nsdiff = a.tv_nsec - b.tv_nsec; |
| 34 | int borrow = nsdiff < 0; | 34 | int borrow = nsdiff < 0; |
| 35 | time_t rs; | 35 | time_t rs; |
| 36 | int rns; | ||
| 37 | bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec); | 36 | bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec); |
| 37 | int rns; | ||
| 38 | if (v == ckd_sub (&rs, rs, borrow)) | 38 | if (v == ckd_sub (&rs, rs, borrow)) |
| 39 | rns = nsdiff + TIMESPEC_HZ * borrow; | 39 | rns = nsdiff + TIMESPEC_HZ * borrow; |
| 40 | else | 40 | else |