folly/FileUtil.h: fix compiler warning signed/unsigned comparison
authorSven Over <over@fb.com>
Wed, 25 Feb 2015 14:54:21 +0000 (06:54 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:29:42 +0000 (19:29 -0800)
commite58f1ced4f8d7a078ae1429ea4bf025898126909
treed0b7fa5b724a6670c0e7788670a026f1b7ffbe51
parenta5709e63e29cd69e4de3e9f463747da9b644844c
folly/FileUtil.h: fix compiler warning signed/unsigned comparison

Summary:
writeFull() returns ssize_t and without proper casting, comparing
it with data.size() triggers a compiler warning (which is
treated as an error) in the gcc-4.9-glibc-2.20 toolchain.

Test Plan: fbmake runtests

Reviewed By: mhx@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1870710

Signature: t1:1870710:1424874592:f51026c35196d763ad4b192d43c8ccee0255b41d
folly/FileUtil.h