Conv.h: fix a type error caught by clang
authorSteve O'Brien <steveo@fb.com>
Mon, 8 Jun 2015 02:06:26 +0000 (19:06 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Jun 2015 20:19:59 +0000 (13:19 -0700)
commit7cae56406bd38fce78099c3c0ec21138aef276e2
tree384a6f9266fb8917efa3ae5f9969f22e5802cb46
parent7efcdea30699df51cce989c860d2e88ddfe1bdc2
Conv.h: fix a type error caught by clang

Summary: Need to be more explicit about types; it was trying to add types deduced to be `unsigned long` + `long` which didn't agree and could be an overflow.  Be explicit anyway about the types involved.  Appease Clang, and also make the code more obvious to the reader.

Test Plan: Tried with gcc 4.9, clang 3.5, clang 3.6.

Reviewed By: yfeldblum@fb.com

Subscribers: mathieubaudet, maoy, folly-diffs@, yzhan, yfeldblum, chalfant

FB internal diff: D2134814

Tasks: 7337462

Signature: t1:2134814:1433726862:5dd80b198187c610f793e26160919922863a22a2

Blame Revision: D1934777
folly/Conv.h