Fix compile issue

This commit is contained in:
halx99 2021-09-30 15:54:00 +08:00
parent bd0fd02860
commit bb916d8159

View File

@ -2364,7 +2364,7 @@ PUGI__NS_BEGIN
if (header & header_mask) alloc->deallocate_string(dest);
// mark the string as not allocated
dest = source_length == 0 ? nullptr : const_cast<String>(source);
dest = source_length == 0 ? nullptr : const_cast<char_t*>(source);
header &= ~header_mask;
return true;