Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304980
b: refs/heads/master
c: b482859
h: refs/heads/master
v: v3
  • Loading branch information
Vaibhav Nagarnaik authored and Frederic Weisbecker committed Apr 25, 2012
1 parent 8833362 commit dbcbd5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2525a0852d81b1cf1155d75d1e3db9682fee191
refs/heads/master: b48285980de2070948c8ac73629c605ad9202589
12 changes: 12 additions & 0 deletions trunk/tools/lib/traceevent/event-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,18 @@ static int arg_num_eval(struct print_arg *arg, long long *val)
break;
*val = left - right;
break;
case '+':
if (arg->op.left->type == PRINT_NULL)
left = 0;
else
ret = arg_num_eval(arg->op.left, &left);
if (!ret)
break;
ret = arg_num_eval(arg->op.right, &right);
if (!ret)
break;
*val = left + right;
break;
default:
do_warning("unknown op '%s'", arg->op.op);
ret = 0;
Expand Down

0 comments on commit dbcbd5a

Please sign in to comment.