Skip to content

Commit b4df558

Browse files
committed
pp_pack: unpack: Use 'uv' form, not 'uvchr'
The new form croaks under failure; the previous didn't. But to get here the previous paragraph of code had to succeed, which means this should too. The flag in the changed call is the default for utf8_to_uv_or_die(), so it can be removed.
1 parent 678e40b commit b4df558

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pp_pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,7 @@ S_unpack_rec(pTHX_ tempsym_t* symptr, const char *s, const char *strbeg, const c
13221322
break;
13231323
}
13241324

1325-
auv = utf8n_to_uvchr(result, len, &retlen,
1326-
UTF8_ALLOW_DEFAULT);
1325+
auv = utf8_to_uv_or_die(result, result + len, &retlen);
13271326
s = ptr;
13281327
}
13291328
else {

0 commit comments

Comments
 (0)