Skip to content
Snippets Groups Projects
Commit a610aa4f authored by Nick Alcock's avatar Nick Alcock
Browse files

libctf: fix the type of ctf_enum.cte_value

This stops the file format from depending on the size of the host int.
(It does mean that we cannot encode enums with a value > 2^32 on
platforms with an int > 2^32: this will be fixed in the next format
revision.)

include/
	* ctf.h (ctf_enum.cte_value): Fix type to int32_t.
parent 9186c494
No related branches found
No related tags found
No related merge requests found
2019-06-03 Nick Alcock <nick.alcock@oracle.com>
* ctf.h (ctf_enum.cte_value): Fix type to int32_t.
2019-05-29 Nick Alcock <nick.alcock@oracle.com>
* ctf-api.h (ctf_sect_t): Drop cts_type, cts_flags, and cts_offset.
......
......@@ -507,7 +507,7 @@ typedef struct ctf_lmember_v2
typedef struct ctf_enum
{
uint32_t cte_name; /* Reference to name in string table. */
int cte_value; /* Value associated with this name. */
int32_t cte_value; /* Value associated with this name. */
} ctf_enum_t;
/* The ctf_archive is a collection of ctf_file_t's stored together. The format
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment