nxt_time_parse.c (0:a63ceefd6ab0) nxt_time_parse.c (611:323e11065f83)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 276 unchanged lines hidden (view full) ---

285 + (nxt_uint_t) hour * 3600
286 + (nxt_uint_t) min * 60
287 + (nxt_uint_t) sec;
288
289#if (NXT_TIME_T_SIZE <= 4)
290
291 /* Y2038 */
292
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 276 unchanged lines hidden (view full) ---

285 + (nxt_uint_t) hour * 3600
286 + (nxt_uint_t) min * 60
287 + (nxt_uint_t) sec;
288
289#if (NXT_TIME_T_SIZE <= 4)
290
291 /* Y2038 */
292
293 if (nxt_slow_path(s > 0x7fffffff)) {
293 if (nxt_slow_path(s > 0x7FFFFFFF)) {
294 return -1;
295 }
296
297#endif
298
299 return (nxt_time_t) s;
300}
301

--- 188 unchanged lines hidden ---
294 return -1;
295 }
296
297#endif
298
299 return (nxt_time_t) s;
300}
301

--- 188 unchanged lines hidden ---