[njs] Replaced constant by sizeof value.
noreply at nginx.com
noreply at nginx.com
Wed Jul 9 19:18:02 UTC 2025
details: https://github.com/nginx/njs/commit/97603051707f7b4a8aac17e733fc8bbf20c933cf
branches: master
commit: 97603051707f7b4a8aac17e733fc8bbf20c933cf
user: Vadim Zhestikov <v.zhestikov at f5.com>
date: Sun, 6 Jul 2025 11:30:38 -0700
description:
Replaced constant by sizeof value.
---
src/njs_flathsh.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/njs_flathsh.h b/src/njs_flathsh.h
index e15162d6..38a9c56e 100644
--- a/src/njs_flathsh.h
+++ b/src/njs_flathsh.h
@@ -72,7 +72,7 @@ struct njs_flathsh_query_s {
#define njs_hash_elts(h) \
- ((njs_flathsh_elt_t *) ((char *) (h) + 16 /* njs_flathsh_descr_t size */))
+ ((njs_flathsh_elt_t *) ((char *) (h) + sizeof(njs_flathsh_descr_t)))
/*
More information about the nginx-devel
mailing list