test: avoid compiler complaints about implicit double-to-int cast
This commit is contained in:
parent
762c85c3ef
commit
c85672eb13
@ -26,7 +26,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#define NUM_SYNC_REQS (10 * 1e5)
|
||||
#define NUM_ASYNC_REQS (1 * 1e5)
|
||||
#define NUM_ASYNC_REQS (1 * (int) 1e5)
|
||||
#define MAX_CONCURRENT_REQS 32
|
||||
|
||||
#define sync_stat(req, path) \
|
||||
|
||||
@ -42,7 +42,7 @@ const char* fmt(double d) {
|
||||
char* p;
|
||||
|
||||
p = (char *) calloc(1, 32) + 31; /* leaks memory */
|
||||
v = d;
|
||||
v = (uint64_t) d;
|
||||
|
||||
#if 0 /* works but we don't care about fractional precision */
|
||||
if (d - v >= 0.01) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user