diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-06-27 08:53:21 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-06-27 08:53:21 +0200 |
commit | c46a3c39f961a1647e53382eae257a25d68a9c4a (patch) | |
tree | cdd71c95ab0c1b46c056bcb7f1246ac46635c9d5 /lib/protocol_benchmarks.py | |
parent | 54631d73eee7932ed76c2f88194975c5743eb898 (diff) |
protocol_benchmarks/xdr16: use uint16 for int lists
Diffstat (limited to 'lib/protocol_benchmarks.py')
-rwxr-xr-x | lib/protocol_benchmarks.py | 6 |
1 files 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: |