mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-04 01:09:59 +00:00
Fix a build error with MSVC
Also fixes a minor bug on Windows with timers running over ~49 days. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -360,7 +360,9 @@ static unsigned elapsed_time(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mbedtls_timing_get_timer(&hires, 0);
|
||||
/* Wraps after ~49.7 days (assuming 32-bit int).
|
||||
* Don't run udp_proxy that long! */
|
||||
return (unsigned) mbedtls_timing_get_timer(&hires, 0);
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user