Skip to content

Instantly share code, notes, and snippets.

@Arnaud92
Created January 8, 2013 14:59
Show Gist options
  • Save Arnaud92/4484386 to your computer and use it in GitHub Desktop.
Save Arnaud92/4484386 to your computer and use it in GitHub Desktop.
At least one small bug.
In threads_msvc.c:
static DWORD impl_xtime2msec(const xtime *xt)
{
return (DWORD)((xt->sec * 1000u) + (xt->nsec / 1000));
}
should be
static DWORD impl_xtime2msec(const xtime *xt)
{
return (DWORD)((xt->sec * 1000u) + (xt->nsec / 1000000));
}
Arnaud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment