summaryrefslogtreecommitdiffstatshomepage
path: root/lib/libm/math.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-12-18 12:52:45 +0000
committerDamien George <damien.p.george@gmail.com>2015-12-18 12:52:45 +0000
commitacaccb37ecae4e29c1e3e6fcd67c4b59bf39dfbd (patch)
treee0bdf581afb2ad682e22f0c89b6ebc03af0ba8b8 /lib/libm/math.c
parentdd5353a4054024a411aa343a22ffcd16195a16ad (diff)
downloadmicropython-acaccb37ecae4e29c1e3e6fcd67c4b59bf39dfbd.tar.gz
micropython-acaccb37ecae4e29c1e3e6fcd67c4b59bf39dfbd.zip
py/gc: When printing info, use %u instead of UINT_FMT for size_t args.
Ideally we'd use %zu for size_t args, but that's unlikely to be supported by all runtimes, and we would then need to implement it in mp_printf. So simplest and most portable option is to use %u and cast the argument to uint(=unsigned int). Note: reason for the change is that UINT_FMT can be %llu (size suitable for mp_uint_t) which is wider than size_t and prints incorrect results.
Diffstat (limited to 'lib/libm/math.c')
0 files changed, 0 insertions, 0 deletions