From 31544bc908d35bff513450bc4bea1d0283a7ddb0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 19 Mar 2021 17:47:24 -0700 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20convert=20pointer=20to=20bool?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Without this patch, Oracle Studio 12.6 complains about converting pointer to bool. * src/editfns.c (styled_format): Use !!. --- src/editfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editfns.c b/src/editfns.c index bc6553a7d2c..87e743afc31 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3138,7 +3138,7 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) char *format_start = SSDATA (args[0]); bool multibyte_format = STRING_MULTIBYTE (args[0]); ptrdiff_t formatlen = SBYTES (args[0]); - bool fmt_props = string_intervals (args[0]); + bool fmt_props = !!string_intervals (args[0]); /* Upper bound on number of format specs. Each uses at least 2 chars. */ ptrdiff_t nspec_bound = SCHARS (args[0]) >> 1; -- 2.39.5