From a7c9db43fbeda92560a0180df4ca17206a6aec7f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 30 Oct 2016 17:09:59 +0000 Subject: use -1 for INVALID_EPOCH_VALUE git-svn-id: svn://tug.org/texlive/trunk@42383 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 4 ++++ Build/source/texk/dvipsk/output.c | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 51a8810dcf3..c70441cc79a 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,5 +1,9 @@ 2016-10-30 Karl Berry + * output.c (INVALID_EPOCH_VALUE): define as (time_t) -1, + to avoid warning with huge unsigned value on 32-bit systems. + (open_output): don't duplicate writing of %%CreationDate. + * dvips.texi (Invoking Dvips): TEXCONFIG does not include . by default. diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c index fa57daaa1a1..14615db3eeb 100644 --- a/Build/source/texk/dvipsk/output.c +++ b/Build/source/texk/dvipsk/output.c @@ -90,7 +90,7 @@ static time_t jobtime; #define strtoll _strtoi64 #endif -#define INVALID_EPOCH_VALUE 0x7fffffffffffffffULL +#define INVALID_EPOCH_VALUE ((time_t) -1) static time_t get_unique_time_if_given(void) @@ -1421,12 +1421,8 @@ initprinter(sectiontype *sect) jobtime = get_unique_time_if_given(); if (jobtime == INVALID_EPOCH_VALUE) { jobtime = time(0); - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(localtime(&jobtime))); - } else { - fprintf(bitfile, "%%%%CreationDate: %s", - asctime(gmtime(&jobtime))); } + fprintf(bitfile, "%%%%CreationDate: %s", asctime(gmtime(&jobtime))); #endif if (! isepsf) { /* -- cgit v1.2.3