From bb743bb6ccaa82ae74e1ec54cccd99a0b592a5b6 Mon Sep 17 00:00:00 2001 From: Daniel Sloof Date: Thu, 14 Aug 2014 14:12:19 -0700 Subject: [PATCH] be explicit about what integer type we're using Summary: Fixes the OSX build. Closes #79 Test Plan: author tested, contbuild, flib Reviewed By: joelm@fb.com FB internal diff: D1498545 --- folly/gen/String-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/gen/String-inl.h b/folly/gen/String-inl.h index 5a522ce5..2eabad36 100644 --- a/folly/gen/String-inl.h +++ b/folly/gen/String-inl.h @@ -101,7 +101,7 @@ bool consumeFixedSizeChunks(Callback& cb, StringPiece& s, uint64_t maxLength) { while (!s.empty()) { auto num_to_add = s.size(); if (maxLength) { - num_to_add = std::min(num_to_add, maxLength); + num_to_add = std::min(num_to_add, maxLength); } if (!cb(StringPiece(s.begin(), num_to_add))) { return false; -- 2.34.1