Skip to content

Commit

Permalink
io: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedede committed Mar 22, 2024
1 parent ef59f0e commit b2a4658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion io/include/aw/io/mmap_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct mmap_file {
: _file{fd}
{
if (!ec)
create_mapping( ec, perms );
create_mapping( ec, perms );
}

mmap_file(fs::path const& path, map_perms perms = map_perms::rdwr)
Expand Down
3 changes: 3 additions & 0 deletions io/win32/file.c++
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* There is NO WARRANTY, to the extent permitted by law.
*/
#include <aw/io/native_file.h>
#include <cassert>
#include "winapi_helpers.h"
#include "path.h"
namespace aw {
Expand Down Expand Up @@ -41,6 +42,8 @@ int get_openmode( file_mode mode )
case fm::exclusive:
case fm::none:
return OPEN_EXISTING;
default:
assert(!"unreachable");
};
}
} // namespace
Expand Down

0 comments on commit b2a4658

Please sign in to comment.