Use glib portable macros to convert gpointer to int
[babeltrace.git] / formats / ctf / metadata / ctf-parser.y
index 821f0f7469b351cff47707e8be85d7fd3d165b12..d0866ffb5c03591689c714d6ff8b2c1b2b28ed05 100644 (file)
@@ -330,7 +330,7 @@ static int lookup_type(struct ctf_scanner_scope *s, const char *id)
 {
        int ret;
 
-       ret = (int) (long) g_hash_table_lookup(s->types, id);
+       ret = GPOINTER_TO_INT(g_hash_table_lookup(s->types, id));
        printf_debug("lookup %p %s %d\n", s, id, ret);
        return ret;
 }
This page took 0.02384 seconds and 4 git commands to generate.