diff options
author | Dan Williams <dcbw@redhat.com> | 2012-01-18 12:28:50 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-01-18 12:28:50 -0600 |
commit | 27b981237eff9ef6239609ed040dc8c088e943d8 (patch) | |
tree | 1ed29e11b18973bee786be0c70d9d96f5b433a3c /test/info.py | |
parent | 178f30bdd3111ba645b92ae6511911cc6a9ece4c (diff) |
core: fix some bugs in GSM7 packing code
The existing gsm_pack() had a bug where if the last
septet should be in an octet by itself, that last
octet wouldn't be added. Plus, kinda pointless to
use a GByteArray here when we already know what the
length will be through simple arithmetic.
We can also simplify the function too.
Furthermore, there weren't any testcases for starting
packing at an offset other than zero, so add one.
Diffstat (limited to 'test/info.py')
0 files changed, 0 insertions, 0 deletions