aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lib/traceevent/event-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 8a5b65df6efb..217c82ee3665 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -3465,7 +3465,7 @@ eval_num_arg(void *data, int size, struct event_format *event, struct print_arg
3465 * is in the bottom half of the 32 bit field. 3465 * is in the bottom half of the 32 bit field.
3466 */ 3466 */
3467 offset &= 0xffff; 3467 offset &= 0xffff;
3468 val = (unsigned long long)(data + offset); 3468 val = (unsigned long long)((unsigned long)data + offset);
3469 break; 3469 break;
3470 default: /* not sure what to do there */ 3470 default: /* not sure what to do there */
3471 return 0; 3471 return 0;