Set file version consistently to avoid misunderstanding

This commit is contained in:
Richard Frith-Macdonald 2021-07-25 07:50:31 +01:00
parent 7245156336
commit 395fafde6f

View file

@ -3037,7 +3037,10 @@ newDetailInZoneForType(GSTimeZone *zone, TypeInfo *type)
/* For version 2+, skip to second header */
if (header->tzh_version[0] != 0)
{
version = header->tzh_version[0];
/* tzh_version[0] is an ascii digit for versions above 1.
*/
version = header->tzh_version[0] - '0';
/* pos indexes after the first header, increment it to index after
* the data associated with that header too.
*/