circuitpython/shared/netutils
Jeff Epler 42f127a799 netutils: Cast the ticks value before printing.
Before, the compiler plugin produced an error in the PYBD_SF6
build, which is a nanboxing build with 64-bit ints.

I made the decision here to cast the value even though some
significant bits might be lost after 49.7 days. However, the
format used is "% 8d", which produces a consistent width
output for small ticks values (up to about 1.1 days). I judged
that it was more valuable to preserve the fixed width display
than to accurately represent long time periods.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 08:24:06 +01:00
..
dhcpserver.c extmod/modlwip: Support IPv6. 2024-02-16 11:46:40 +11:00
dhcpserver.h shared: Introduce new top-level dir and move 1st party lib code there. 2021-07-12 17:07:36 +10:00
netutils.c extmod/network_ninaw10: Implement the ipconfig methods for ninaw10. 2024-06-04 12:45:01 +10:00
netutils.h shared/netutils: Add "py/obj.h" header include. 2022-11-11 15:43:53 +11:00
trace.c netutils: Cast the ticks value before printing. 2025-07-06 08:24:06 +01:00