Skip to content

Commit bb582d7

Browse files
committed
one more nan
1 parent e187ec9 commit bb582d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packet++/src/NtpLayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ namespace pcpp
570570

571571
uint32_t NtpLayer::convertToShortFormat(const double val)
572572
{
573-
double integerPart = NAN;
573+
double integerPart = 0;
574574
double const fractionPart = modf(val, &integerPart);
575575

576576
// Cast values to 16bit

0 commit comments

Comments
 (0)