diff --git a/main.cpp b/main.cpp index df9c3ba85..0613bd274 100644 --- a/main.cpp +++ b/main.cpp @@ -204,7 +204,8 @@ int main() assert(asString(rlp("dog")) == "\x43""dog"); // 2-item list - RLP twoItemList("\x82\x0f\x43""dog"); + string twoItemListString = "\x82\x0f\x43""dog"; + RLP twoItemList(twoItemListString); assert(twoItemList.itemCount() == 2); assert(twoItemList[0] == 15); assert(twoItemList[1] == "dog");