From: Dmitry Volyntsev Date: Thu, 8 Aug 2024 05:27:45 +0000 (-0700) Subject: Fixed Buffer.prototype.writeFloat() and friends. X-Git-Tag: 0.8.6~24 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=7ba3a8b943488f801a8dde64d76a965b7686094c;p=njs.git Fixed Buffer.prototype.writeFloat() and friends. --- diff --git a/src/njs_buffer.c b/src/njs_buffer.c index fc95aebd..fa087a19 100644 --- a/src/njs_buffer.c +++ b/src/njs_buffer.c @@ -1504,7 +1504,7 @@ njs_buffer_prototype_write_float(njs_vm_t *vm, njs_value_t *args, *((uint64_t *) u8) = conv_f64.u; } - njs_set_undefined(retval); + njs_set_number(retval, index + size); return NJS_OK; }