summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-12 21:58:08 +0300
committerChristian Linhart <chris@demorecorder.com>2015-03-15 11:23:30 +0100
commit0ab52cbcc630ff8ddfa6f6b245c6b3071867b291 (patch)
treee172c1e3ea18f1676fa994c2481b0be24e22fdbf /src
parent80341d5df3e30e2cfc3066d05256af9e513e4500 (diff)
c_client.py: fix indentation
(Also remove unnecessary parens around the condition). Signed-off-by: Ran Benita <ran234@gmail.com> Reviewed-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'src')
-rw-r--r--src/c_client.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/c_client.py b/src/c_client.py
index d288e80..db19c27 100644
--- a/src/c_client.py
+++ b/src/c_client.py
@@ -1808,14 +1808,13 @@ def _c_accessors_list(self, field):
'''
def get_align_pad(field):
- prev = field.prev_varsized_field
- prev_prev = field.prev_varsized_field.prev_varsized_field
-
- if (prev.type.is_pad and prev.type.align > 0 and prev_prev is not None):
- return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
- else:
- return (prev, None)
+ prev = field.prev_varsized_field
+ prev_prev = field.prev_varsized_field.prev_varsized_field
+ if prev.type.is_pad and prev.type.align > 0 and prev_prev is not None:
+ return (prev_prev, '((-prev.index) & (%d - 1))' % prev.type.align)
+ else:
+ return (prev, None)
list = field.type
c_type = self.c_type