summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorPavel Shlyak <[email protected]>2018-12-19 19:48:52 +0300
committerraveit65 <[email protected]>2018-12-21 19:21:22 +0100
commit49f81fbed8185a69d49f48a981bb80b7b21919fc (patch)
tree723605b6d727daec0757aeb091f4c72e84fdc7de /src/unit.c
parentd0a089f1d26438f666bed293866751efaa568531 (diff)
downloadmate-calc-49f81fbed8185a69d49f48a981bb80b7b21919fc.tar.bz2
mate-calc-49f81fbed8185a69d49f48a981bb80b7b21919fc.tar.xz
Fix typo
Check https://github.com/mate-desktop/mate-calc/issues/69 for more details
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c2
1 files changed, 1 insertions, 1 deletions
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);