summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-23 22:57:08 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-23 22:57:08 +1100
commitfebeff4af429483b41137f0befc70d14c9077ae1 (patch)
tree09cb739636e5290c835e582d409faac9d0a15311 /py/objcomplex.c
parentf64a3e296e1c696b1c8a09bac68f7e075f419c8b (diff)
downloadmicropython-febeff4af429483b41137f0befc70d14c9077ae1.tar.gz
micropython-febeff4af429483b41137f0befc70d14c9077ae1.zip
py/modmath: Allow trunc/ceil/floor to return a big int if necessary.
Previous to this patch, if the result of the trunc/ceil/floor functions overflowed a small int, or was inf or nan, then a garbage value was returned. With this patch the correct big-int is returned if necessary, and exceptions are raised for inf or nan.
Diffstat (limited to 'py/objcomplex.c')
0 files changed, 0 insertions, 0 deletions