summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/uart.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-05-05 21:42:39 +1000
committerDamien George <damien.p.george@gmail.com>2017-05-06 10:29:09 +1000
commit58bb73e010301235b32c3b81575af21cca55f2a7 (patch)
treed01586977dd71bc9a533bceb64dd7e899b2d5fc2 /stmhal/uart.c
parent288ea06e7ce80c24c242ebd065be39ab3ab64c12 (diff)
downloadmicropython-58bb73e010301235b32c3b81575af21cca55f2a7.tar.gz
micropython-58bb73e010301235b32c3b81575af21cca55f2a7.zip
py/objint: In int.from_bytes, only create big-int if really needed.
This patch ensures that int.from_bytes only creates a big-int if necessary, by checking the value for a small-int overflow as it's being parsed.
Diffstat (limited to 'stmhal/uart.c')
0 files changed, 0 insertions, 0 deletions