Make a few implicit truncations either explicit, or not truncate
[folly.git] / folly / io / test / IOBufCursorTest.cpp
index 36002b2a7105af2147f52da85571a7ce51742160..cfc5109db81dc0efe4b13419b141d45539abc81f 100644 (file)
@@ -538,7 +538,7 @@ TEST(IOBuf, QueueAppenderPushAtMostFillBuffer) {
   QueueAppender appender{&queue, 125};
   std::vector<uint8_t> data;
   data.resize(1000);
-  std::iota(data.begin(), data.end(), 0);
+  std::iota(data.begin(), data.end(), uint8_t(0));
   // Add 100 byte
   appender.pushAtMost(data.data(), 100);
   // Add 900 bytes