projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use glib portable macros to convert gpointer to int
[babeltrace.git]
/
formats
/
ctf
/
ir
/
field-types.c
diff --git
a/formats/ctf/ir/field-types.c
b/formats/ctf/ir/field-types.c
index f898d5af3df194e5fd421424c9d7f691d88a9e00..4f2bc03449bd438c5d3f648907aab4c66c9d6dac 100644
(file)
--- a/
formats/ctf/ir/field-types.c
+++ b/
formats/ctf/ir/field-types.c
@@
-404,8
+404,8
@@
int add_structure_field(GPtrArray *fields,
field->name = name_quark;
field->type = field_type;
g_hash_table_insert(field_name_to_index,
field->name = name_quark;
field->type = field_type;
g_hash_table_insert(field_name_to_index,
-
(gpointer) (unsigned long) name_quark
,
-
(gpointer) (unsigned long) fields->len
);
+
GUINT_TO_POINTER(name_quark)
,
+
GUINT_TO_POINTER(fields->len)
);
g_ptr_array_add(fields, field);
end:
return ret;
g_ptr_array_add(fields, field);
end:
return ret;
This page took
0.027274 seconds
and
4
git commands to generate.