From f0cded395fd1801b2255ebbe36cb09456bed6e50 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 15 Jun 2020 22:14:41 +0200 Subject: [PATCH] unictype/joininggroup-name: Fix warning on 64-bit mingw. Reported by Biswapriyo Nath in . * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t first. --- ChangeLog | 8 ++++++++ lib/unictype/joininggroup_name.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 747d7e5364..81bf7cb155 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-06-15 Bruno Haible + + unictype/joininggroup-name: Fix warning on 64-bit mingw. + Reported by Biswapriyo Nath in + . + * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t + first. + 2020-06-06 Bruno Haible calloc-gnu tests: Avoid a test failure with clang. diff --git a/lib/unictype/joininggroup_name.c b/lib/unictype/joininggroup_name.c index dc683f8572..b45ab5c9bf 100644 --- a/lib/unictype/joininggroup_name.c +++ b/lib/unictype/joininggroup_name.c @@ -40,7 +40,7 @@ static const struct joining_group_stringpool_t joining_group_stringpool_contents static const int joining_group_index[] = { -#define ELEM(tag,string) (int)(long)&((struct joining_group_stringpool_t *)0)->tag, +#define ELEM(tag,string) (int)(size_t)&((struct joining_group_stringpool_t *)0)->tag, #include "unictype/joininggroup_name.h" #undef ELEM }; -- 2.39.5