diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-05 10:28:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-05 10:52:45 -0400 |
commit | 4326a3adced3788c774bf248d64776d730bafe0f (patch) | |
tree | 5ce2ac043260d5b32d727229438af799837f80b1 /scripts/buildcommands.py | |
parent | ed103822f5501f08c5d23216a1a505dbdd163f6c (diff) | |
download | kutter-4326a3adced3788c774bf248d64776d730bafe0f.tar.gz kutter-4326a3adced3788c774bf248d64776d730bafe0f.tar.xz kutter-4326a3adced3788c774bf248d64776d730bafe0f.zip |
buildcommands: Fix max_size calculation
The maximum max_size value should not include MESSAGE_MIN - that is
already added by the runtime code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/buildcommands.py')
-rw-r--r-- | scripts/buildcommands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py index 8b9cc9d8..6bb47341 100644 --- a/scripts/buildcommands.py +++ b/scripts/buildcommands.py @@ -71,7 +71,7 @@ def build_parser(parser, iscmd, all_param_types): + types.count('PT_buffer')) out += " .num_args=%d," % (num_args,) else: - max_size = min(msgproto.MESSAGE_MAX + max_size = min(msgproto.MESSAGE_MAX - msgproto.MESSAGE_MIN , 1 + sum([t.max_length for t in parser.param_types])) out += " .max_size=%d," % (max_size,) return out |