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>master
parent
89fbf979f1
commit
9c8fcee195
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue