base: fix xml_node test compile error with GCC 8.3.0

Fixes #3324
This commit is contained in:
Christian Prochaska 2019-05-07 13:55:10 +02:00 committed by Christian Helmuth
parent 70e0514a02
commit 47a2ad604c
1 changed files with 2 additions and 2 deletions

View File

@ -354,8 +354,8 @@ static void test_decoded_content(Env &env,
* Test Xml_node::decoded_content<String<N> >
*/
enum { MAX_OUT_STRING_SZ = 256 };
using Out_string = String<min(max_content_sz + 1, (size_t)MAX_OUT_STRING_SZ)>;
enum { MAX_OUT_STRING_CONTENT_SZ = 255 };
using Out_string = String<min(max_content_sz, (size_t)MAX_OUT_STRING_CONTENT_SZ) + 1>;
Out_string str = xml.decoded_content<Out_string>();
if (memcmp(str.string(), buf2, min(str.size(), buf_sz))) {