Prevent compiler warning about mixing enumeral and non-enumeral types in ternary...
authorJon Maltiel Swenson <jmswen@fb.com>
Wed, 24 Aug 2016 16:35:48 +0000 (09:35 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Wed, 24 Aug 2016 16:38:39 +0000 (09:38 -0700)
commit2f5fcde0698e2f6ad536201c158e0cf324033d62
tree83d28fc65047d8fac3e1d74805ee57fc4b9eab72
parenteb64757302a38f013e8204b95450404d5dc3c103
Prevent compiler warning about mixing enumeral and non-enumeral types in ternary expression

Summary:
The GCC warning "warning: enumeral and non-enumeral type in conditional expression"
is logged a lot in many builds since lots of code depends on small_vector.  This diff
should prevent those warnings.

Reviewed By: yfeldblum

Differential Revision: D3762835

fbshipit-source-id: 49831e4364e716592287c05d1dbf1912326324f6
folly/small_vector.h