/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#include <thread>
+
#include <glog/logging.h>
#include <folly/Benchmark.h>
PCHECK(::write(wfd, &x, 1) == 1); // signal startup
FILE* f = fdopen(wfd, "w");
PCHECK(f);
- for (int i = 1; i <= iters; ++i) {
- fprintf(f, "%d\n", i);
+ for (size_t i = 1; i <= iters; ++i) {
+ fprintf(f, "%zu\n", i);
}
fclose(f);
});