From: Nick Alcock Date: Fri, 10 Jun 2022 18:06:59 +0000 (+0100) Subject: libctf: avoid mingw warning X-Git-Tag: binutils-2_39~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb;p=thirdparty%2Fbinutils-gdb.git libctf: avoid mingw warning A missing paren led to an intended cast to avoid dependence on the size of size_t in one argument of ctf_err_warn applying to the wrong type by mistake. libctf/ChangeLog: * ctf-serialize.c (ctf_write_mem): Fix cast. --- diff --git a/libctf/ctf-serialize.c b/libctf/ctf-serialize.c index c6b8b495568..ecbc61783f2 100644 --- a/libctf/ctf-serialize.c +++ b/libctf/ctf-serialize.c @@ -1319,7 +1319,7 @@ ctf_write_mem (ctf_dict_t *fp, size_t *size, size_t threshold) { ctf_set_errno (fp, ENOMEM); ctf_err_warn (fp, 0, 0, _("ctf_write_mem: cannot allocate %li bytes"), - (unsigned long) fp->ctf_size + sizeof (struct ctf_header)); + (unsigned long) (fp->ctf_size + sizeof (struct ctf_header))); return NULL; } ctf_flip_header (hp);