Skip to content

Commit

Permalink
windows compilation fix round 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BrannonKing committed Sep 30, 2019
1 parent 7854717 commit 9dee2ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prefixtrie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ static managed_mapped_file::segment_manager* segmentManager()
{
fs::remove(file);
auto size = (uint64_t)g_memfileSize * 1024ULL * 1024ULL * 1024ULL;
menaged_file.reset(new managed_mapped_file(bip::create_only, file.c_str(), size));
// using string() to remove w_char filename encoding on Windows
menaged_file.reset(new managed_mapped_file(bip::create_only, file.string().c_str(), size));
}
~CSharedMemoryFile()
{
Expand Down

0 comments on commit 9dee2ee

Please sign in to comment.