folly/AtomicHashArray: use an unsigned type for each of two counters
authorJim Meyering <meyering@fb.com>
Tue, 6 Jan 2015 20:40:30 +0000 (12:40 -0800)
committerViswanath Sivakumar <viswanath@fb.com>
Tue, 13 Jan 2015 19:01:04 +0000 (11:01 -0800)
commitd6ddc282986099d6f25e8e423044d79c46d86e23
tree6def5daf37f7305fff70a767f67e4b3dd832d0fc
parent69e1c7dc768a985bc4de034141cced656d46a5b4
folly/AtomicHashArray: use an unsigned type for each of two counters

Summary:
* folly/AtomicHashArray.h (numEntries_, numPendingEntries_):
Use an unsigned type for each of these.  They count things, can
never go below 0, and are compared to unsigned values.
Otherwise, gcc-4.9 would emit this:
folly/AtomicHashArray-inl.h:153:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]

Test Plan:
Run this and note there are fewer errors than before:
fbconfig --platform-all=gcc-4.9-glibc-2.20 -r folly && fbmake dbgo

Reviewed By: philipp@fb.com

Subscribers: trunkagent, folly-diffs@

FB internal diff: D1770695

Tasks: 5941250

Signature: t1:1770695:1420683354:bfa4775bc2f8aab74e34772308a5c8b1779243b8
folly/AtomicHashArray.h