Skip to content

Commit 11bf00b

Browse files
committed
Merge pull request nodegit#440 from nodegit/fix-transfer-progress-values
Fix transfer callback stats
2 parents 04e3b7d + e92e360 commit 11bf00b

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.jshintrc

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
{
2-
"evil": true,
32
"boss": true,
4-
"immed": false,
3+
"curly": true,
54
"eqnull": true,
5+
"evil": true,
6+
"futurehostile": true,
7+
"globals": {
8+
"after": true,
9+
"afterEach": true,
10+
"before": true,
11+
"beforeEach": true,
12+
"define": true,
13+
"describe": true,
14+
"global": true,
15+
"it": true
16+
},
17+
"immed": false,
618
"maxlen": 80,
719
"node": true,
20+
"predef": [
21+
"-Promise"
22+
],
823
"proto": true,
9-
"curly": true,
1024
"quotmark": "double",
1125
"trailing": true,
12-
"unused": "vars",
1326
"undef": true,
14-
"validthis": true,
15-
"globals": {
16-
"global": true,
17-
"define": true,
18-
"it": true,
19-
"describe": true,
20-
"before": true,
21-
"beforeEach": true,
22-
"after": true,
23-
"afterEach": true
24-
},
25-
"predef": ["-Promise"]
27+
"unused": "vars",
28+
"validthis": true
2629
}

generate/templates/partials/callback_helpers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void {{ cppClassName }}::{{ cppFunctionName }}_{{ cbFunction.name }}_asyncAfter(
6262
{% if arg.isEnum %}
6363
NanNew((int)baton->{{ arg.name }}),
6464
{% elsif arg.isLibgitType %}
65-
NanNew({{ arg.cppClassName }}::New(&baton->{{ arg.name }}, false)),
65+
NanNew({{ arg.cppClassName }}::New((void *)baton->{{ arg.name }}, false)),
6666
{% elsif arg.cType == "size_t" %}
6767
// HACK: NAN should really have an overload for NanNew to support size_t
6868
NanNew((unsigned int)baton->{{ arg.name }}),

generate/templates/partials/field_accessors.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
{% if arg.isEnum %}
156156
NanNew((int)baton->{{ arg.name }}),
157157
{% elsif arg.isLibgitType %}
158-
NanNew({{ arg.cppClassName }}::New(&baton->{{ arg.name }}, false)),
158+
NanNew({{ arg.cppClassName }}::New((void *)baton->{{ arg.name }}, false)),
159159
{% elsif arg.cType == "size_t" %}
160160
// HACK: NAN should really have an overload for NanNew to support size_t
161161
NanNew((unsigned int)baton->{{ arg.name }}),

0 commit comments

Comments
 (0)