From: Bruno Haible Date: Tue, 24 Dec 2019 19:02:27 +0000 (+0100) Subject: Fix a test failure of msgfmt-desktop-2 on HP-UX with cc. X-Git-Tag: v0.20.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357e5e4699b7b8be8588f9e6fb36c366b002a00c;p=thirdparty%2Fgettext.git Fix a test failure of msgfmt-desktop-2 on HP-UX with cc. * gettext-tools/src/write-desktop.c (msgfmt_desktop_handle_pair): Don't cast directly from 'void *' to 'bool'. --- diff --git a/gettext-tools/src/write-desktop.c b/gettext-tools/src/write-desktop.c index 0ca9367ae..319ac50ed 100644 --- a/gettext-tools/src/write-desktop.c +++ b/gettext-tools/src/write-desktop.c @@ -1,6 +1,5 @@ /* Writing Desktop Entry files. - Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016 Free - Software Foundation, Inc. + Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2016, 2019 Free Software Foundation, Inc. This file was written by Daiki Ueno . This program is free software: you can redistribute it and/or modify @@ -74,7 +73,7 @@ msgfmt_desktop_handle_pair (desktop_reader_ty *reader, if (hash_find_entry (msgfmt_reader->keywords, key, strlen (key), &keyword_value) == 0) { - bool is_list = (bool) keyword_value; + bool is_list = (bool) (uintptr_t) keyword_value; char *unescaped = desktop_unescape_string (value, is_list); size_t i;