Permalink
Browse files

Fix compile problems on macosx

Change-Id: I4046878ca7e055d39a970cc897b99366058ce69a
Reviewed-on: http://review.couchbase.org/25114
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 1d3182c commit 1097eca96158afda1e4869814c6f59183b67f230 @trondn trondn committed Mar 12, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 example/pillowfight/pillowfight.cc
@@ -306,8 +306,8 @@ class InstancePool
class ThreadContext
{
public:
- ThreadContext(InstancePool *pool) :
- currSeqno(0), pool(pool) {
+ ThreadContext(InstancePool *p) :
+ currSeqno(0), pool(p) {
srand(config.getRandomSeed());
for (int ii = 0; ii < 8192; ++ii) {
seqno[ii] = rand();
@@ -676,7 +676,7 @@ int main(int argc, char **argv)
}
std::list<pthread_t> threads;
- for (int ii = 0; ii < config.getNumThreads(); ++ii) {
+ for (uint32_t ii = 0; ii < config.getNumThreads(); ++ii) {
ThreadContext *ctx = new ThreadContext(pool);
contexts.push_back(ctx);

0 comments on commit 1097eca

Please sign in to comment.