From 6b1af917fcc97d403d4ece10aef7a2db251ff34c Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Tue, 4 Jun 2019 19:52:59 +0200 Subject: [PATCH] Do it the other way around than previous commit. Force 32 bit type. So it's compatible with machines where int is 64bit (ILP64), mostly for the future I guess. --- src/modules/tkldb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/tkldb.c b/src/modules/tkldb.c index 337d58105..ef38fd558 100644 --- a/src/modules/tkldb.c +++ b/src/modules/tkldb.c @@ -85,7 +85,7 @@ static int read_str(int fd, char **x); // Globals static ModDataInfo *tkldb_md; -static uint64_t tkl_db_version = TKL_DB_VERSION; +static uint32_t tkl_db_version = TKL_DB_VERSION; struct cfgstruct { char *database; @@ -373,7 +373,7 @@ int read_tkldb(void) size_t tklcount_tkl1000 = 0; uint64_t added = 0; uint64_t skipped = 0; - uint64_t version; + uint32_t version; // Variables for all TKL types // Some of them need to be declared and NULL initialised early due to the macro FreeTKLRead() being used by R_SAFE() on error