Skip to content

Commit 20b8b34

Browse files
committed
windows port
1 parent 19e23e8 commit 20b8b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/mtconnect/sink/rest_sink/rest_service.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ namespace mtconnect {
296296
{
297297
using unique_file = std::unique_ptr<std::FILE, decltype(&std::fclose)>;
298298
unique_ptr<char[]> buffer(new char[fc->m_size]);
299-
unique_file file(std::fopen(fc->m_path.c_str(), "rb"), &std::fclose);
299+
unique_file file(std::fopen(reinterpret_cast<const char *>(fc->m_path.c_str()), "rb"), &std::fclose);
300300
if (!file)
301301
throw std::runtime_error("Cannot open file for reading");
302302

0 commit comments

Comments
 (0)