]> git.kaiwu.me - njs.git/commitdiff
Replaced constant by sizeof value.
authorVadim Zhestikov <v.zhestikov@f5.com>
Sun, 6 Jul 2025 18:30:38 +0000 (11:30 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Wed, 9 Jul 2025 19:17:31 +0000 (12:17 -0700)
src/njs_flathsh.h

index e15162d64044ce137632c3c824326fe8474bb6e7..38a9c56e9923ecc8b906c4fc73b4953ce6153781 100644 (file)
@@ -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)))
 
 
 /*