]> The Tcpdump Group git mirrors - tcpdump/commit
Use double rather than float.
authorGuy Harris <[email protected]>
Mon, 14 Sep 2015 22:12:28 +0000 (15:12 -0700)
committerGuy Harris <[email protected]>
Mon, 14 Sep 2015 22:12:28 +0000 (15:12 -0700)
commitff1df423b6a8cda80cef88efa8a3162abcfd0e6e
tree465fb9a7070277c0b95c7ccf7a167f46fc168ad5
parent9883c76d127f71c8ed4a193ea34afa1b1cbf177e
Use double rather than float.

That means we can fit a 32-bit integer into a floating-point value
without losing precision.

Also, put in explicit casts when we convert a floating-point value to an
integral value, to suppress compiler warnings.
print-ntp.c