From 9c8fcee1958093cd5ff76bf4ca0e20a67f224566 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Wed, 16 Apr 2014 21:25:40 +0300 Subject: 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 --- src/xkbcomp/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/xkbcomp') 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; -- cgit v1.2.3