Skip to content

Commit 8f0fc65

Browse files
committed
safeguard against max macro
1 parent 64aa203 commit 8f0fc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/velocypack/Options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ struct Options {
157157

158158
// max recursion level for object/array nesting. checked by Parser and
159159
// Validator.
160-
uint32_t nestingLimit = std::numeric_limits<uint32_t>::max();
160+
uint32_t nestingLimit = (std::numeric_limits<uint32_t>::max)();
161161

162162
// default options with the above settings
163163
static Options Defaults;

0 commit comments

Comments
 (0)