aboutsummaryrefslogtreecommitdiffstats
path: root/tools/process-x11-xcb.pl
diff options
context:
space:
mode:
authorStephen Fisher <sfisher@sdf.org>2014-12-19 13:26:22 -0700
committerStephen Fisher <sfisher@sdf.org>2014-12-19 20:28:14 +0000
commit0df4eecd55117180c138a868fb2f13e80f56a0af (patch)
tree65de7be7e7d00bf1429a5b3b2a29bd97b5cf89c8 /tools/process-x11-xcb.pl
parentfbd6caa36c1e292ef8a8feccb033371d26d7165d (diff)
Add parenthesis around some generated code so it compiles. This new
code only shows up when the X11 dissector is updated from the latest xcbproto & mesa, which I will commit real soon now (RSN). Change-Id: Ic750df3b4406f107fd850ade891ee093054c8d6d Reviewed-on: https://code.wireshark.org/review/5882 Reviewed-by: Stephen Fisher <sfisher@sdf.org>
Diffstat (limited to 'tools/process-x11-xcb.pl')
-rwxr-xr-xtools/process-x11-xcb.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/process-x11-xcb.pl b/tools/process-x11-xcb.pl
index a6781daaa9..2e766ec0c9 100755
--- a/tools/process-x11-xcb.pl
+++ b/tools/process-x11-xcb.pl
@@ -765,7 +765,7 @@ sub dissect_element($$$$$;$$)
$length += $align - $length % $align;
}
if ($adjustlength) {
- say $impl $indent.'length = (length + '.($align-1).' & ~'.($align-1).';';
+ say $impl $indent.'length = ((length + '.($align-1).') & ~'.($align-1).');';
}
}
}