summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-glib/json-types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-types.h b/json-glib/json-types.h
index d9cfa8b..1942a43 100644
--- a/json-glib/json-types.h
+++ b/json-glib/json-types.h
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
*
* Evaluates to the #JsonNodeType contained by @node
*/
-#define JSON_NODE_TYPE(node) (((JsonNode *) (node))->type)
+#define JSON_NODE_TYPE(node) (json_node_get_node_type ((node)))
#define JSON_TYPE_NODE (json_node_get_type ())
#define JSON_TYPE_OBJECT (json_object_get_type ())