[njs] Fixed format specifier in typed-array constructor.

Dmitry Volyntsev xeioex at nginx.com
Thu Jan 16 16:35:05 UTC 2020


details:   https://hg.nginx.org/njs/rev/6017c94f59b2
branches:  
changeset: 1303:6017c94f59b2
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Jan 16 19:18:41 2020 +0300
description:
Fixed format specifier in typed-array constructor.

diffstat:

 src/njs_typed_array.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 22e3b0285ad6 -r 6017c94f59b2 src/njs_typed_array.c
--- a/src/njs_typed_array.c	Thu Jan 16 19:18:41 2020 +0300
+++ b/src/njs_typed_array.c	Thu Jan 16 19:18:41 2020 +0300
@@ -63,7 +63,7 @@ njs_typed_array_constructor(njs_vm_t *vm
             size *= element_size;
 
             if (njs_slow_path((offset + size) > buffer->size)) {
-                njs_range_error(vm, "Invalid typed array length: %uD", size);
+                njs_range_error(vm, "Invalid typed array length: %uL", size);
                 return NJS_ERROR;
             }
 


More information about the nginx-devel mailing list