Swap a few APIs to reduce sign and implicit truncations required to work with it
[folly.git] / folly / io / test / IOBufQueueTest.cpp
index 9fc35120963c622bc31c957a2b78e8371813b57e..bc2a8901aa286ce7dd76f217d6d07720d86faebd 100644 (file)
@@ -43,8 +43,7 @@ struct Initializer {
 };
 Initializer initializer;
 
-unique_ptr<IOBuf>
-stringToIOBuf(const char* s, uint32_t len) {
+unique_ptr<IOBuf> stringToIOBuf(const char* s, size_t len) {
   unique_ptr<IOBuf> buf = IOBuf::create(len);
   memcpy(buf->writableTail(), s, len);
   buf->append(len);