From c46a3c39f961a1647e53382eae257a25d68a9c4a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 27 Jun 2019 08:53:21 +0200 Subject: protocol_benchmarks/xdr16: use uint16 for int lists --- lib/protocol_benchmarks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/protocol_benchmarks.py b/lib/protocol_benchmarks.py index 9398843..ffa2bfb 100755 --- a/lib/protocol_benchmarks.py +++ b/lib/protocol_benchmarks.py @@ -1443,9 +1443,9 @@ class XDR16(DummyProtocol): elif type(data) == list: #self.enc_buf += 'xdrstream.setNextArrayLen({});\n'.format(len(data)) #self.enc_buf += 'xdrstream << variable;\n' - self.enc_buf += 'xdrstream << (uint32_t){:d};\n'.format(len(data)) - self.dec_buf += 'xdrinput.get_uint32();\n' - self.dec_buf1 += 'xdrinput.get_uint32();\n' + self.enc_buf += 'xdrstream << (uint16_t){:d};\n'.format(len(data)) + self.dec_buf += 'xdrinput.get_uint16();\n' + self.dec_buf1 += 'xdrinput.get_uint16();\n' for elem in data: self.from_json(elem) elif type(data) == str: -- cgit v1.2.3