From 49f81fbed8185a69d49f48a981bb80b7b21919fc Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Wed, 19 Dec 2018 19:48:52 +0300 Subject: Fix typo Check https://github.com/mate-desktop/mate-calc/issues/69 for more details --- src/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit.c b/src/unit.c index f7c0277..0a906fe 100644 --- a/src/unit.c +++ b/src/unit.c @@ -141,7 +141,7 @@ unit_convert_from(Unit *unit, const MPNumber *x, MPNumber *z) { g_return_val_if_fail(unit != NULL, FALSE); g_return_val_if_fail(x != NULL, FALSE); - g_return_val_if_fail(x != NULL, FALSE); + g_return_val_if_fail(z != NULL, FALSE); if (unit->priv->from_function) return solve_function(unit->priv->from_function, x, z); -- cgit v1.2.1