libctf, create: add explicit casts for variables' and slices' types
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 19:23:07 +0000 (20:23 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:23 +0000 (17:57 +0100)
commit9943fa3a7320158e209a0339a4022a8165e9d5a6
treedc9c8619f07ca31e8526ffeb87b62ee0bd567764
parentafd78bd6f0a30ba57adaea870c05cbbb925cc769
libctf, create: add explicit casts for variables' and slices' types

This is technically unnecessary -- the compiler is quite capable of
doing the range reduction for us -- but it does mean that all
assignments of a ctf_id_t to its final uint32_t representation now have
appropriate explicit casts.

libctf/
* ctf-create.c (ctf_serialize): Add cast.
(ctf_add_slice): Likewise.
libctf/ChangeLog
libctf/ctf-create.c