changeset 2593:29eadf7b6f65

Replaced constant by sizeof value.
author Vadim Zhestikov <v.zhestikov@f5.com>
date Sun, 06 Jul 2025 11:30:38 -0700
parents 8fda8e1f75b5
children a92e5fa64acd
files src/njs_flathsh.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/njs_flathsh.h	Thu Jul 03 14:14:43 2025 -0700
+++ b/src/njs_flathsh.h	Sun Jul 06 11:30:38 2025 -0700
@@ -72,7 +72,7 @@
 
 
 #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)))
 
 
 /*