From 8d15991fb4e598c82705a507d7f82013f974226b Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Sun, 27 Jul 2025 17:14:12 +0200 Subject: [PATCH] Update comment Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com> --- headers/modsecurity/rules_set_properties.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/modsecurity/rules_set_properties.h b/headers/modsecurity/rules_set_properties.h index 30808efa..0523ce90 100644 --- a/headers/modsecurity/rules_set_properties.h +++ b/headers/modsecurity/rules_set_properties.h @@ -130,10 +130,10 @@ public: } if ( - // first condition will be true if the value is bigger than int64/uint64 max value - // the second condition checks if the value is fit as int64/uint64, but not fit for - // designed type, eg. uint32; in that case the errno will be 0, but - // we must check the value is not bigger than the given max() at the type class + // The first condition will be true when the value is bigger than int64/uint64 maximum value. + // The second condition checks whether the value fits into int64/uint64, but not + // into the designed type, e.g., uint32; in that case the errno will be 0, but + // we must check the value is not bigger than the defined maximum of the class. (errno == ERANGE && val == std::numeric_limits::max()) || (val > static_cast(maxValue()))