Skip to content

Commit

Permalink
rb for win (qicosmos#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos authored Dec 13, 2023
1 parent 3da490e commit 56d908d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/cinatra/ylt/coro_io/coro_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,20 +325,20 @@ class coro_file {
std::string str_mode(int open_mode) {
switch (open_mode) {
case flags::read_only:
return "r";
return "rb";
case flags::create_write:
case flags::write_only:
return "w";
case flags::read_write:
return "r+";
return "rb+";
case flags::append:
return "a";
case flags::create_read_write_append:
return "a+";
return "ab+";
case flags::truncate:
return "w+";
default:
return "r+";
return "rb+";
}
}

Expand Down

0 comments on commit 56d908d

Please sign in to comment.