Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
9c576391
Commit
9c576391
authored
Feb 03, 2017
by
Kenton Varda
Committed by
GitHub
Feb 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #410 from harrishancock/msvc-fixes
Fix MSVC build errors
parents
556e63dd
a09f4080
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
array.h
c++/src/kj/array.h
+1
-1
async-io.c++
c++/src/kj/async-io.c++
+1
-1
No files found.
c++/src/kj/array.h
View file @
9c576391
...
...
@@ -524,7 +524,7 @@ struct Mapper {
}
return
builder
.
finish
();
}
typedef
decltype
(
*
(
array
).
begin
())
Element
;
typedef
decltype
(
*
kj
::
instance
<
T
>
(
).
begin
())
Element
;
};
template
<
typename
T
,
size_t
s
>
...
...
c++/src/kj/async-io.c++
View file @
9c576391
...
...
@@ -122,7 +122,7 @@ private:
auto
partPtr
=
part
.
asPtr
();
parts
.
add
(
kj
::
mv
(
part
));
return
input
.
tryRead
(
partPtr
.
begin
(),
partPtr
.
size
(),
partPtr
.
size
())
.
then
([
this
,
partPtr
,
total
](
size_t
amount
)
->
Promise
<
uint64_t
>
{
.
then
([
this
,
KJ_CPCAP
(
partPtr
)
,
total
](
size_t
amount
)
->
Promise
<
uint64_t
>
{
uint64_t
newTotal
=
total
+
amount
;
if
(
amount
<
partPtr
.
size
())
{
return
newTotal
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment