diff options
author | Ran Benita <ran234@gmail.com> | 2014-10-12 21:58:04 +0300 |
---|---|---|
committer | Christian Linhart <chris@demorecorder.com> | 2015-03-15 10:09:39 +0100 |
commit | 12d23b934f189607ad77667834205dfcf89a41f0 (patch) | |
tree | af43d87c2d7e55276b92cb2269de363f7a011969 | |
parent | 1b37d6ad3a37a9d0201e3b2caee6cd53b7b4b3dc (diff) |
c_client.py: simplify maximum expression
Signed-off-by: Ran Benita <ran234@gmail.com>
Reviewed-by: Christian Linhart <chris@demorecorder.com>
-rw-r--r-- | src/c_client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/c_client.py b/src/c_client.py index 2042ce0..b5d3cf2 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -1338,8 +1338,7 @@ def _c_serialize(context, self): if not field.type.fixed_size() or self.is_switch: variable_size_fields += 1 # determine maxtypelen - for p in params: - maxtypelen = max(maxtypelen, len(p[0]) + len(p[1])) + maxtypelen = max(len(p[0]) + len(p[1]) for p in params) # write to .c/.h indent = ' '*(len(func_name)+2) |