Fix misc compilation errors in ThreadCachedIntTest.
authorPeter Griess <pgriess@fb.com>
Thu, 26 Sep 2013 14:25:58 +0000 (09:25 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:58 +0000 (18:46 -0700)
commit27ff9a4ae1369b937db8d63984ea721c85670b85
treeb4169928757d06511d3f195171ac42dd1d3ad499
parent209fa4a88193af19c1f4446767b2dd6086e789b0
Fix misc compilation errors in ThreadCachedIntTest.

Summary:
- int64_t is a long on x86_64, but a long long on 32-bit.
- Build a uint64_t from pthread_self() before performing masking on it.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D998598
folly/test/ThreadCachedIntTest.cpp