You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sys_now() function improperly uses a u32_t type for the usec variable. This causes large time differences of 4x10^6 to occur when the tv.tv_usec value is less than the starttime.tv_usec value.
If the type of just the usec variable and the cast are changed to s32_t, everything is fine.
The text was updated successfully, but these errors were encountered:
Oooo, nice catch! Unfortunately I just made this github snapshot for my own easy reference and don't intend to maintain it. I'm sure the upstream project would like to know about this. I don't know offhand exactly where to report it, but http://savannah.nongnu.org/projects/lwip would be a good place to start looking.
The sys_now() function improperly uses a
u32_t
type for theusec
variable. This causes large time differences of 4x10^6 to occur when the tv.tv_usec value is less than the starttime.tv_usec value.If the type of just the
usec
variable and the cast are changed tos32_t
, everything is fine.The text was updated successfully, but these errors were encountered: