diff options
author | Damien George <damien@micropython.org> | 2020-08-31 14:25:20 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-01 12:36:28 +1000 |
commit | c70e59965977df97d1134f0dcadb9cd4ed58139f (patch) | |
tree | d7131bc7784067efd8521441b0495a587f3991bd /tests/basics/struct_micropython.py.exp | |
parent | 40153b800a8324f6cf3e47dd71cafcf90c3c4718 (diff) | |
download | micropython-c70e59965977df97d1134f0dcadb9cd4ed58139f.tar.gz micropython-c70e59965977df97d1134f0dcadb9cd4ed58139f.zip |
extmod/vfs: Support larger integer range in VFS stat time fields.
On ports like unix where the Epoch is 1970/1/1 and atime/mtime/ctime are in
seconds since the Epoch, this value will overflow a small-int on 32-bit
systems. So far this is only an issue on 32-bit unix builds that use the
VFS layer (eg dev and coverage unix variants) but the fix (using
mp_obj_new_int_from_uint instead of MP_OBJ_NEW_SMALL_INT) is there for all
ports so as to not complicate the code, and because they will need the
range one day.
Also apply a similar fix to other fields in VfsPosix.stat because they may
also be large.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/struct_micropython.py.exp')
0 files changed, 0 insertions, 0 deletions