From: Igor Sysoev Date: Tue, 4 Apr 2017 10:23:10 +0000 (+0300) Subject: Style fixes and small miscellaneous changes. X-Git-Tag: 0.1.10~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=00f3c3cef27d82e1c80859e8753dafe545b6ae9b;p=njs.git Style fixes and small miscellaneous changes. --- diff --git a/njs/njs_array.c b/njs/njs_array.c index 3f02e2bb..9cc980fd 100644 --- a/njs/njs_array.c +++ b/njs/njs_array.c @@ -2044,7 +2044,7 @@ njs_array_prototype_sort_continuation(njs_vm_t *vm, njs_value_t *args, sort->current++; n = sort->current; - } while (sort->current < array->length); + } while (n < array->length); } vm->retval = args[0]; diff --git a/njs/njs_function.c b/njs/njs_function.c index df620d85..56a99ca8 100644 --- a/njs/njs_function.c +++ b/njs/njs_function.c @@ -162,7 +162,7 @@ njs_function_frame(njs_vm_t *vm, njs_function_t *function, 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_function_t *function, njs_value_t *this, 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 --git a/njs/njs_parser.c b/njs/njs_parser.c index 7fee2a46..461fd63f 100644 --- a/njs/njs_parser.c +++ b/njs/njs_parser.c @@ -178,7 +178,7 @@ njs_parser_scope_begin(njs_vm_t *vm, njs_parser_t *parser, njs_scope_t type) 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) {