test: avoid compiler complaints about implicit double-to-int cast

This commit is contained in:
Bert Belder 2012-08-13 22:19:41 +02:00
parent 762c85c3ef
commit c85672eb13
2 changed files with 2 additions and 2 deletions

View File

@ -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) \

View File

@ -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) {