diff options
author | Matthias Radestock <matthias@lshift.net> | 2010-02-05 20:28:16 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2010-02-05 20:28:16 +0000 |
commit | a7b3464eb73e66f61a218134f03055b6b037ec5e (patch) | |
tree | 9549e3b8fb3459dd946c665afddd8605b12419e2 /codegen.py | |
parent | 82571f5e68c898a79fac70bdf7c65c1de0f2dcd6 (diff) | |
parent | a8e6ccc9735461e74e501ee3f176ea3c0970c1d5 (diff) | |
download | rabbitmq-server-bug22310.tar.gz |
merge default into bug22310bug22310
in order to resolve merge conflict going the other way
Diffstat (limited to 'codegen.py')
-rw-r--r-- | codegen.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -214,6 +214,8 @@ def genErl(spec): elif type == 'table': print " F%d = rabbit_binary_parser:parse_table(F%dTab)," % \ (f.index, f.index) + elif type == 'shortstr': + print " if F%dLen > 255 -> exit(method_field_shortstr_overflow); true -> ok end," % (f.index) else: pass @@ -246,7 +248,10 @@ def genErl(spec): elif type == 'table': print " F%dTab = rabbit_binary_generator:generate_table(F%d)," % (f.index, f.index) print " F%dLen = size(F%dTab)," % (f.index, f.index) - elif type in ['shortstr', 'longstr']: + elif type == 'shortstr': + print " F%dLen = size(F%d)," % (f.index, f.index) + print " if F%dLen > 255 -> exit(method_field_shortstr_overflow); true -> ok end," % (f.index) + elif type == 'longstr': print " F%dLen = size(F%d)," % (f.index, f.index) else: pass |