Skip to content

Commit

Permalink
one more nan
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Jan 4, 2025
1 parent e187ec9 commit bb582d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packet++/src/NtpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ namespace pcpp

uint32_t NtpLayer::convertToShortFormat(const double val)
{
double integerPart = NAN;
double integerPart = 0;
double const fractionPart = modf(val, &integerPart);

// Cast values to 16bit
Expand Down

0 comments on commit bb582d7

Please sign in to comment.