[njs] Fixed Buffer.prototype.writeFloat() and friends.
noreply at nginx.com
noreply at nginx.com
Fri Aug 16 01:36:02 UTC 2024
details: https://github.com/nginx/njs/commit/7ba3a8b943488f801a8dde64d76a965b7686094c
branches: master
commit: 7ba3a8b943488f801a8dde64d76a965b7686094c
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Wed, 7 Aug 2024 22:27:45 -0700
description:
Fixed Buffer.prototype.writeFloat() and friends.
---
src/njs_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
More information about the nginx-devel
mailing list