details: http://hg.nginx.org/njs/rev/7e6460db39ad branches: changeset: 337:7e6460db39ad user: Igor Sysoev <i...@sysoev.ru> date: Tue Apr 04 13:23:10 2017 +0300 description: Style fixes and small miscellaneous changes.
diffstat: njs/njs_array.c | 2 +- njs/njs_function.c | 4 ++-- njs/njs_parser.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diffs (45 lines): diff -r f62632793238 -r 7e6460db39ad njs/njs_array.c --- a/njs/njs_array.c Tue Apr 04 11:00:49 2017 +0300 +++ b/njs/njs_array.c Tue Apr 04 13:23:10 2017 +0300 @@ -2044,7 +2044,7 @@ njs_array_prototype_sort_continuation(nj sort->current++; n = sort->current; - } while (sort->current < array->length); + } while (n < array->length); } vm->retval = args[0]; diff -r f62632793238 -r 7e6460db39ad njs/njs_function.c --- a/njs/njs_function.c Tue Apr 04 11:00:49 2017 +0300 +++ b/njs/njs_function.c Tue Apr 04 13:23:10 2017 +0300 @@ -162,7 +162,7 @@ njs_function_frame(njs_vm_t *vm, njs_fun nxt_bool_t ctor) { size_t size; - nxt_uint_t n, max_args, closures;; + nxt_uint_t n, max_args, closures; njs_value_t *value, *bound; njs_frame_t *frame; njs_native_frame_t *native_frame; @@ -594,7 +594,7 @@ njs_function_activate(njs_vm_t *vm, njs_ cont->retval = retval; cont->return_address = vm->current - + sizeof(njs_vmcode_function_call_t);; + + sizeof(njs_vmcode_function_call_t); vm->current = (u_char *) njs_continuation_nexus; return NJS_APPLIED; diff -r f62632793238 -r 7e6460db39ad njs/njs_parser.c --- a/njs/njs_parser.c Tue Apr 04 11:00:49 2017 +0300 +++ b/njs/njs_parser.c Tue Apr 04 13:23:10 2017 +0300 @@ -178,7 +178,7 @@ njs_parser_scope_begin(njs_vm_t *vm, njs if (type == NJS_SCOPE_FUNCTION) { scope->next_index[0] = type; scope->next_index[1] = NJS_SCOPE_CLOSURE + nesting - + sizeof(njs_value_t);; + + sizeof(njs_value_t); } else { if (type == NJS_SCOPE_GLOBAL) { _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel