summaryrefslogtreecommitdiff
path: root/src/xkbcomp
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-04-16 21:25:40 +0300
committerRan Benita <ran234@gmail.com>2014-04-16 21:25:40 +0300
commit9c8fcee1958093cd5ff76bf4ca0e20a67f224566 (patch)
tree0607e47dc7d49f9751eba616e092d49f89143c3f /src/xkbcomp
parent89fbf979f13f9254e55f69dbe1229c7d8b8e4b4c (diff)
downloadlibxkbcommon-9c8fcee1958093cd5ff76bf4ca0e20a67f224566.tar.gz
libxkbcommon-9c8fcee1958093cd5ff76bf4ca0e20a67f224566.tar.bz2
libxkbcommon-9c8fcee1958093cd5ff76bf4ca0e20a67f224566.zip
expr: fix handling of unknown integer binary operator
We can't reach the default branch but at least make it do something sensible. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp')
-rw-r--r--src/xkbcomp/expr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c
index c514f8d..6d3e466 100644
--- a/src/xkbcomp/expr.c
+++ b/src/xkbcomp/expr.c
@@ -337,7 +337,9 @@ ExprResolveIntegerLookup(struct xkb_context *ctx, const ExprDef *expr,
*val_rtrn = l / r;
break;
default:
- break;
+ log_err(ctx, "%s of integers not permitted\n",
+ expr_op_type_to_string(expr->expr.op));
+ return false;
}
return true;