gnucash maint: Don't filter use of TTInfo file section based on sizeof time_t.
John Ralls
jralls at code.gnucash.org
Mon Mar 22 17:40:15 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/27435b10 (commit)
from https://github.com/Gnucash/gnucash/commit/b4058924 (commit)
commit 27435b10384fd3c5f46f74430bec02a8363327e4
Author: John Ralls <jralls at ceridwen.us>
Date: Mon Mar 22 14:23:23 2021 -0700
Don't filter use of TTInfo file section based on sizeof time_t.
The whole point of GncDateTime is to work around 32-bit time_t.
diff --git a/libgnucash/engine/gnc-timezone.cpp b/libgnucash/engine/gnc-timezone.cpp
index dc735a402..a150d619e 100644
--- a/libgnucash/engine/gnc-timezone.cpp
+++ b/libgnucash/engine/gnc-timezone.cpp
@@ -418,7 +418,7 @@ namespace IANAParser
auto isgmt_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisgmtcnt)));
auto isstd_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisstdcnt)));
auto leap_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.leapcnt)));
- if ((tzh.version == '2' || tzh.version == '3') && sizeof(time_t) == sizeof(int64_t))
+ if ((tzh.version == '2' || tzh.version == '3'))
{
fb_index = (sizeof(tzh) +
(sizeof(uint32_t) + sizeof(uint8_t)) * time_count +
Summary of changes:
libgnucash/engine/gnc-timezone.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list