Skip to content

Commit

Permalink
Revert "Turn off POK for numbers"
Browse files Browse the repository at this point in the history
This reverts commit b6b1661.
  • Loading branch information
ingydotnet committed May 12, 2023
1 parent 918652f commit 4ddec19
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions LibYAML/perl_libyaml.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,7 @@ load_scalar(perl_yaml_loader_t *loader)

if (style == YAML_PLAIN_SCALAR_STYLE && looks_like_number(scalar) ) {
/* numify */
if (SvNV(scalar) == SvIV(scalar)) {
SvIOK_only(scalar);
}
else {
SvNOK_only(scalar);
}
SvIV_please(scalar);
}

(void)sv_utf8_decode(scalar);
Expand Down

0 comments on commit 4ddec19

Please sign in to comment.