| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Isn't this line redundant now?
Sorry, something went wrong.
|
Yeah, I'll get rid of it altogether.
…On Tue, Feb 27, 2018 at 2:08 PM, Colin Ihrig ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In test/addons-napi/test_object/test_object.c
<#19039 (comment)>:
> @@ -199,7 +198,7 @@ napi_value Wrap(napi_env env, napi_callback_info info) {
napi_value arg;
NAPI_CALL(env, napi_get_cb_info(env, info, &argc, &arg, NULL, NULL));
- int32_t* data = malloc(sizeof(int32_t));
+ int32_t* data = &test_value;
*data = test_value;
Isn't this line redundant now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19039 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7k0QsMmy7jfk7aXglqHPca_MLXyjpNks5tZFKcgaJpZM4SVZVn>
.
|
Sorry, something went wrong.
Passing a pointer to a static integer is sufficient for the test.
|
CI https://ci.nodejs.org/job/node-test-pull-request/13425/ @gabrielschulhof please always start a CI after opening a PR :-) |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Passing a pointer to a static integer is sufficient for the test. PR-URL: #19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
Passing a pointer to a static integer is sufficient for the test. PR-URL: nodejs#19039 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Hitesh Kanwathirtha <hiteshk@microsoft.com>
| Back | FazBrowse Home | New Git URL |
Passing a pointer to a static integer is sufficient for the test.
Checklist
Affected core subsystem(s)
n-api