diff options
| author | Paul Eggert | 2021-03-19 17:47:24 -0700 |
|---|---|---|
| committer | Paul Eggert | 2021-03-19 17:48:00 -0700 |
| commit | 31544bc908d35bff513450bc4bea1d0283a7ddb0 (patch) | |
| tree | 2b8f2fc7dc1bf32158c6db4f86843a2a4e534ee8 /src | |
| parent | 0eeb865aae3373343c18b7674fde91f280edafef (diff) | |
| download | emacs-31544bc908d35bff513450bc4bea1d0283a7ddb0.tar.gz emacs-31544bc908d35bff513450bc4bea1d0283a7ddb0.zip | |
Don’t convert pointer to bool
Without this patch, Oracle Studio 12.6 complains about converting
pointer to bool.
* src/editfns.c (styled_format): Use !!.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 3138 | char *format_start = SSDATA (args[0]); | 3138 | char *format_start = SSDATA (args[0]); |
| 3139 | bool multibyte_format = STRING_MULTIBYTE (args[0]); | 3139 | bool multibyte_format = STRING_MULTIBYTE (args[0]); |
| 3140 | ptrdiff_t formatlen = SBYTES (args[0]); | 3140 | ptrdiff_t formatlen = SBYTES (args[0]); |
| 3141 | bool fmt_props = string_intervals (args[0]); | 3141 | bool fmt_props = !!string_intervals (args[0]); |
| 3142 | 3142 | ||
| 3143 | /* Upper bound on number of format specs. Each uses at least 2 chars. */ | 3143 | /* Upper bound on number of format specs. Each uses at least 2 chars. */ |
| 3144 | ptrdiff_t nspec_bound = SCHARS (args[0]) >> 1; | 3144 | ptrdiff_t nspec_bound = SCHARS (args[0]) >> 1; |