From 7fd5c13e064c6d1d27e9e9f2e739f369fb8f9a04 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 15 May 2017 20:14:22 -0400 Subject: [PATCH] Fix PutDecodedDatumInto on OS X --- datatest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datatest.cpp b/datatest.cpp index 315300dd..dcf2140b 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -119,7 +119,7 @@ void PutDecodedDatumInto(const TestData &data, const char *name, BufferedTransfo // Use like this (from Threefish test vectors, which supplies byte-reversed values): // Key: ce BC2560EFC6BBA2B1 E3361F162238EB40 FB8631EE0ABBD175 7B9479D4C5479ED1 // The 'ce' means BC2560EFC6BBA2B1 will be processed into B1A2BBC6EF6025BC. - if (s1.length() >= 2 && s1.substr(0,2) == "ce") + if (s1.length() >= 3 && s1.substr(0,2) == "ce ") { word64 value; std::istringstream iss(s1.substr(3));