From 6d5807ec4b24acf548f548073a448521a0b8abed Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 21 Jul 2017 21:24:28 -0400 Subject: [PATCH] Fixed sign and ensured that the `DataFromString` implementation is of the thing declared in the header. --- Storage/Data/ZX8081.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Storage/Data/ZX8081.cpp b/Storage/Data/ZX8081.cpp index d706dfc4b..ada6f2e6d 100644 --- a/Storage/Data/ZX8081.cpp +++ b/Storage/Data/ZX8081.cpp @@ -51,7 +51,7 @@ static std::shared_ptr ZX81FileFromData(const std::vector &data) // Look for a file name. size_t data_pointer = 0; std::vector name_data; - int c = 11; + size_t c = 11; while(c < data.size() && c--) { name_data.push_back(data[data_pointer] & 0x3f); if(data[data_pointer] & 0x80) break; @@ -121,7 +121,7 @@ std::wstring Storage::Data::ZX8081::StringFromData(const std::vector &d return string; } -std::vector DataFromString(const std::wstring &string, bool is_zx81) { +std::vector Storage::Data::ZX8081::DataFromString(const std::wstring &string, bool is_zx81) { std::vector data; // TODO