core: update doc strings and fix 1 issue for little endian int

This commit is contained in:
mitshell 2017-08-28 00:34:42 +02:00
parent 9d8105b77d
commit 0a91c238c5
2 changed files with 2 additions and 2 deletions

View File

@ -1990,7 +1990,7 @@ def pack_val(*val):
u = v[1]+(1<<v[2])
if u < (1<<(v[2]-1)):
u = 1<<(v[2]-1)
v_bytes = uint_le_to_bytes(u, v[2])
v_bytes = int_le_to_bytes(v[1], v[2])
# a) append pack_val first, if exist
if pack_fmt is not None:
pack_buf = pack(''.join(pack_fmt), *pack_val)

View File

@ -1962,7 +1962,7 @@ def pack_val(*val):
u = v[1]+(1<<v[2])
if u < (1<<(v[2]-1)):
u = 1<<(v[2]-1)
v_bytes = uint_le_to_bytes(u, v[2])
v_bytes = int_le_to_bytes(v[1], v[2])
# a) append pack_val first, if exist
if pack_fmt is not None:
pack_buf = pack(''.join(pack_fmt), *pack_val)