Fix compiler warning induced by commit d8b15eeb8.
authorTom Lane
Wed, 24 Jun 2020 19:47:30 +0000 (15:47 -0400)
committerTom Lane
Wed, 24 Jun 2020 19:47:54 +0000 (15:47 -0400)
commitff28f35d2ffb3a485c45d99039a1f17c3bd2a475
treec759152fb62c463c978fb7203f261e3b96f09323
parent013d324d51ef55cbfff50d4302261b5199cd3198
Fix compiler warning induced by commit d8b15eeb8.

I forgot that INT64_FORMAT can't be used with sscanf on Windows.
Use the same trick of sscanf'ing into a temp variable as we do in
some other places in zic.c.

The upstream IANA code avoids the portability problem by relying on
's SCNdFAST64 macro.  Once we're requiring C99 in all
branches, we should do likewise and drop this set of diffs from
upstream.  For now, though, a hack seems fine, since we do not
actually care about leapseconds anyway.

Discussion: https://postgr.es/m/4e5d1a5b-143e-e70e-a99d-a3b01c1ae7c3@2ndquadrant.com
src/timezone/zic.c