aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stat-time.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stat-time.h')
-rw-r--r--lib/stat-time.h3
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;