From: Dmitry Volyntsev Date: Mon, 23 Mar 2020 16:52:02 +0000 (+0300) Subject: Fixed "PROP NEXT" instruction. X-Git-Tag: 0.4.0~18 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=460765b839178f59835ce4e9c32fb627023b3751;p=njs.git Fixed "PROP NEXT" instruction. The proper way to access array's elements is "start" field whereas "data" is an allocation field. While currently they are numerically indentical it may change in the future. --- diff --git a/src/njs_vmcode.c b/src/njs_vmcode.c index a42cd758..6b74c4aa 100644 --- a/src/njs_vmcode.c +++ b/src/njs_vmcode.c @@ -788,7 +788,7 @@ next: next = value2->data.u.next; if (next->index < next->array->length) { - *retval = next->array->data[next->index++]; + *retval = next->array->start[next->index++]; ret = pnext->offset; break;