From: Bruno Haible Date: Mon, 15 Jun 2020 20:14:41 +0000 (+0200) Subject: unictype/joininggroup-name: Fix warning on 64-bit mingw. X-Git-Tag: v1.0~3977 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0cded395fd1801b2255ebbe36cb09456bed6e50;p=thirdparty%2Fgnulib.git 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. --- 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 };