diff options
author | Richard Hughes <richard@hughsie.com> | 2021-05-16 11:26:08 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-05-16 11:26:37 +0100 |
commit | d2ecf1a426401c666a9515987b49431900157794 (patch) | |
tree | 0945863a82bbfaafd904825290ba3d667fd6bcd8 /json-glib/json-gobject.c | |
parent | 8c4deccd80b902eb1a95c43fbf58e5a82c343d53 (diff) | |
download | json-glib-wip/hughsie/typecheck.tar.gz |
trivial: Return the correct type in g_return_val_if_fail()wip/hughsie/typecheck
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | json-glib/json-gobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c index b42dc83..1e7bf2c 100644 --- a/json-glib/json-gobject.c +++ b/json-glib/json-gobject.c @@ -57,8 +57,8 @@ enum_from_string (GType type, gint value; gboolean retval = TRUE; - g_return_val_if_fail (G_TYPE_IS_ENUM (type), 0); - g_return_val_if_fail (string != NULL, 0); + g_return_val_if_fail (G_TYPE_IS_ENUM (type), FALSE); + g_return_val_if_fail (string != NULL, FALSE); value = strtoul (string, &endptr, 0); if (endptr != string) /* parsed a number */ @@ -95,8 +95,8 @@ flags_from_string (GType type, gunichar ch; gboolean eos; - g_return_val_if_fail (G_TYPE_IS_FLAGS (type), 0); - g_return_val_if_fail (string != 0, 0); + g_return_val_if_fail (G_TYPE_IS_FLAGS (type), FALSE); + g_return_val_if_fail (string != 0, FALSE); ret = TRUE; |