Last active
January 8, 2019 06:33
-
-
Save xeioex/2b419784305db55fe0aceef30b9cfa7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/njs/njs_function.h b/njs/njs_function.h | |
| --- a/njs/njs_function.h | |
| +++ b/njs/njs_function.h | |
| @@ -174,7 +174,8 @@ njs_native_frame_t *njs_function_previou | |
| void njs_function_frame_free(njs_vm_t *vm, njs_native_frame_t *frame); | |
| njs_ret_t njs_function_call(njs_vm_t *vm, njs_index_t retval, size_t advance); | |
| njs_ret_t njs_function_native_call(njs_vm_t *vm, njs_function_native_t native, | |
| - njs_value_t *args, uint8_t *args_types, nxt_uint_t nargs, njs_index_t retval); | |
| + njs_value_t *args, uint8_t *args_types, nxt_uint_t nargs, | |
| + njs_index_t retval); | |
| extern const njs_object_init_t njs_function_constructor_init; | |
| extern const njs_object_init_t njs_function_prototype_init; | |
| diff --git a/njs/njs_vm.c b/njs/njs_vm.c | |
| --- a/njs/njs_vm.c | |
| +++ b/njs/njs_vm.c | |
| @@ -2055,8 +2055,9 @@ njs_vmcode_function_call(njs_vm_t *vm, n | |
| return 0; | |
| } | |
| - ret = njs_function_native_call(vm, function->u.native, args, function->args_types, | |
| - nargs, (njs_index_t ) retval); | |
| + ret = njs_function_native_call(vm, function->u.native, args, | |
| + function->args_types, nargs, | |
| + (njs_index_t ) retval); | |
| switch (ret) { | |
| case NXT_OK: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment