Skip to content
Snippets Groups Projects
Commit 900caea6 authored by Colin Walters's avatar Colin Walters
Browse files

macros: Fix casting for C++ compatibility

Prep for more work on porting rpm-ostree to use cxx-rs.
parent a8b44189
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ G_BEGIN_DECLS ...@@ -136,7 +136,7 @@ G_BEGIN_DECLS
guard && ({ g_hash_table_iter_init (&it, ht), TRUE; }); \ guard && ({ g_hash_table_iter_init (&it, ht), TRUE; }); \
guard = FALSE) \ guard = FALSE) \
for (kt k; guard; guard = FALSE) \ for (kt k; guard; guard = FALSE) \
for (vt v; g_hash_table_iter_next (&it, (gpointer)&k, (gpointer)&v);) for (vt v; g_hash_table_iter_next (&it, (void**)&k, (void**)&v);)
/* Cleaner method to iterate over a GHashTable. I.e. rather than /* Cleaner method to iterate over a GHashTable. I.e. rather than
......
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