Swap a few APIs to reduce sign and implicit truncations required to work with it
[folly.git] / folly / io / test / IOBufCursorTest.cpp
index cae9c496baaf831d5c7660dc648dcfded769e51c..2dc1766c95be06d2b8d4c594fc040811a25e509c 100644 (file)
@@ -451,8 +451,8 @@ TEST(IOBuf, Appender) {
   append(head, "hello");
 
   Appender app(head.get(), 10);
-  uint32_t cap = head->capacity();
-  uint32_t len1 = app.length();
+  auto cap = head->capacity();
+  auto len1 = app.length();
   EXPECT_EQ(cap - 5, len1);
   app.ensure(len1);  // won't grow
   EXPECT_EQ(len1, app.length());