summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org>2019-06-06 10:55:03 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-06-06 10:55:30 (GMT)
commitc31f6e97690e6febb98e42fdc5172b4b4280260c (patch) (side-by-side diff)
tree3cb02397de5b3ede5a2d0a00e6f61fc506077e32 /src
parenta0c096190fa57b12b9b95ada70f51cab402c74c7 (diff)
downloadgrecs-c31f6e97690e6febb98e42fdc5172b4b4280260c.tar.gz
grecs-c31f6e97690e6febb98e42fdc5172b4b4280260c.tar.bz2
Bugfix
* src/assert.c (grecs_assert_node_value_type): Fix return value.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/assert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assert.c b/src/assert.c
index 0577768..c1cfc01 100644
--- a/src/assert.c
+++ b/src/assert.c
@@ -53,6 +53,6 @@ grecs_assert_node_value_type(enum grecs_callback_command cmd,
grecs_node_t *node, int type)
{
return grecs_assert_scalar_stmt(&node->locus, cmd)
- && grecs_assert_value_type(node->v.value, type,
+ || grecs_assert_value_type(node->v.value, type,
&node->locus);
}

Return to:

Send suggestions and report system problems to the System administrator.