Skip to content

Commit 8d15991

Browse files
airweentheseion
andauthored
Update comment
Co-authored-by: Max Leske <[email protected]>
1 parent b8a22bb commit 8d15991

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

headers/modsecurity/rules_set_properties.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ class ConfigValue {
130130
}
131131

132132
if (
133-
// first condition will be true if the value is bigger than int64/uint64 max value
134-
// the second condition checks if the value is fit as int64/uint64, but not fit for
135-
// designed type, eg. uint32; in that case the errno will be 0, but
136-
// we must check the value is not bigger than the given max() at the type class
133+
// The first condition will be true when the value is bigger than int64/uint64 maximum value.
134+
// The second condition checks whether the value fits into int64/uint64, but not
135+
// into the designed type, e.g., uint32; in that case the errno will be 0, but
136+
// we must check the value is not bigger than the defined maximum of the class.
137137
(errno == ERANGE && val == std::numeric_limits<LimitSigned>::max())
138138
||
139139
(val > static_cast<LimitSigned>(maxValue()))

0 commit comments

Comments
 (0)