File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,7 @@ class JSON_Parser
189
189
const typename std::char_traits<CharType>::int_type m_eof;
190
190
size_t m_currentColumn;
191
191
size_t m_currentParsingDepth;
192
- #ifndef __APPLE__
193
192
static const size_t maxParsingDepth = 128 ;
194
- #else
195
- static const size_t maxParsingDepth = 32 ;
196
- #endif
197
193
};
198
194
199
195
template <typename CharType>
Original file line number Diff line number Diff line change @@ -490,21 +490,12 @@ utility::string_t make_deep_json_string(size_t depth)
490
490
491
491
TEST (deeply_nested)
492
492
{
493
- #ifdef __APPLE__
494
- auto strGood = make_deep_json_string (32 );
495
- #else
496
- auto strGood = make_deep_json_string (128 );
497
- #endif
498
493
// This should parse without issues:
494
+ auto strGood = make_deep_json_string (128 );
499
495
json::value::parse (strGood);
500
496
501
- #ifdef __APPLE__
502
- auto strBad = make_deep_json_string (33 );
503
- #else
504
- auto strBad = make_deep_json_string (129 );
505
- #endif
506
-
507
497
// But this one should throw:
498
+ auto strBad = make_deep_json_string (129 );
508
499
VERIFY_PARSING_THROW (json::value::parse (strBad));
509
500
}
510
501
You can’t perform that action at this time.
0 commit comments