diff options
| author | Paul Eggert | 2023-05-17 15:07:38 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-05-17 15:41:00 -0700 |
| commit | afbdae00ab59bbda971780fa04dd75dc7d1e7df7 (patch) | |
| tree | a847a84dd9fe028c83db27eda0901cd45ed683ad /lib/stat-time.h | |
| parent | 0bba1b8c3df8b7b53e08fd69dcc832d253e7a2d1 (diff) | |
| download | emacs-afbdae00ab59bbda971780fa04dd75dc7d1e7df7.tar.gz emacs-afbdae00ab59bbda971780fa04dd75dc7d1e7df7.zip | |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/stat-time.h')
| -rw-r--r-- | lib/stat-time.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/stat-time.h b/lib/stat-time.h index af084102dae..75eb27e549d 100644 --- a/lib/stat-time.h +++ b/lib/stat-time.h | |||
| @@ -221,8 +221,7 @@ stat_time_normalize (int result, _GL_UNUSED struct stat *st) | |||
| 221 | } | 221 | } |
| 222 | ts->tv_nsec = r; | 222 | ts->tv_nsec = r; |
| 223 | /* Overflow is possible, as Solaris 11 stat can yield | 223 | /* Overflow is possible, as Solaris 11 stat can yield |
| 224 | tv_sec == TYPE_MINIMUM (time_t) && tv_nsec == -1000000000. | 224 | tv_sec == TYPE_MINIMUM (time_t) && tv_nsec == -1000000000. */ |
| 225 | INT_ADD_WRAPV is OK, since time_t is signed on Solaris. */ | ||
| 226 | if (ckd_add (&ts->tv_sec, q, ts->tv_sec)) | 225 | if (ckd_add (&ts->tv_sec, q, ts->tv_sec)) |
| 227 | { | 226 | { |
| 228 | errno = EOVERFLOW; | 227 | errno = EOVERFLOW; |