devilutionX icon indicating copy to clipboard operation
devilutionX copied to clipboard

Add missing include in missile_test.cpp

Open ephphatha opened this issue 2 years ago • 2 comments

prevented building tests on macos

ephphatha avatar May 25 '23 10:05 ephphatha

/root/repo/Source/pfile.cpp:366:61: error: invalid initialization of reference of type 'const wstring& {aka const std::__cxx11::basic_string<wchar_t>&}' from expression of type 'const std::__cxx11::basic_string' size_t bytes = static_cast<size_t>(std::stoi(bitsAsString) / 8);

Hm hopefully we can upgrade GCC for Amiga soon

AJenbo avatar May 25 '23 12:05 AJenbo

welp :D

Also turns out it builds without this include after installing xcode extras, must've been using an outdated toolchain previously... probably still worth it given the use of that class is unrelated to any of the other headers included in missile_test.cpp

ephphatha avatar May 25 '23 12:05 ephphatha