Skip to content

Commit

Permalink
Fix compile errors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Jun 12, 2021
1 parent ab473fd commit 3e60e85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/uvutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ class WriteOp {
std::vector<uv_buf_t> bufs() {
std::vector<uv_buf_t> res;
if (prefix.size() > 0) {
uv_buf_t buf_prefix = {&prefix[0], prefix.size()};
res.push_back(buf_prefix);
res.push_back(uv_buf_init(&prefix[0], prefix.size()));
}
res.push_back(buffer);
if (suffix.size() > 0) {
uv_buf_t buf_suffix = {&suffix[0], suffix.size()};
res.push_back(buf_suffix);
res.push_back(uv_buf_init(&suffix[0], suffix.size()));
}
return res;
}
Expand Down

0 comments on commit 3e60e85

Please sign in to comment.