diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2022-06-10 19:06:59 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2022-06-21 19:27:15 +0100 |
commit | 3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb (patch) | |
tree | 4f16e53326e51dd62423c01466530409d7216177 /libctf | |
parent | 6bd2318f32842a27b03677b670421f93c14f9302 (diff) | |
download | fsf-binutils-gdb-3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb.zip fsf-binutils-gdb-3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb.tar.gz fsf-binutils-gdb-3ec2b3c05887bd00a6d4a4e94e004c6d9d2f70eb.tar.bz2 |
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.
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-serialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libctf/ctf-serialize.c b/libctf/ctf-serialize.c index c6b8b49..ecbc617 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); |