We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4493319 commit b245ed6Copy full SHA for b245ed6
1 file changed
src/node-persistent-cache.cpp
@@ -41,6 +41,10 @@ node_persistent_cache::node_persistent_cache(std::string file_name,
41
flags |= O_CREAT; // NOLINT(hicpp-signed-bitwise)
42
}
43
44
+#ifdef _WIN32
45
+ flags |= O_BINARY; // NOLINT(hicpp-signed-bitwise)
46
+#endif
47
+
48
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
49
m_fd = open(m_file_name.c_str(), flags, 0644);
50
if (m_fd < 0) {
0 commit comments