Fix use of SvPVXtrue() where SvTRUEx() was intended

This commit is contained in:
Yorhel 2025-04-07 14:29:21 +02:00
parent b3281924d1
commit e7a9f165de
3 changed files with 6 additions and 6 deletions

View file

@ -272,7 +272,7 @@ static SV *fujson_parse_xs(pTHX_ I32 ax, I32 argc, SV *val) {
r = ST(i);
i++;
if (strcmp(arg, "utf8") == 0) decutf8 = SvPVXtrue(r);
if (strcmp(arg, "utf8") == 0) decutf8 = SvTRUEx(r);
else if (strcmp(arg, "max_size") == 0) maxlen = SvUV(r);
else if (strcmp(arg, "max_depth") == 0) ctx.depth = SvUV(r);
else if (strcmp(arg, "offset") == 0) offset = r;