We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f22cd66 commit 1d9f041Copy full SHA for 1d9f041
utf8.c
@@ -1459,6 +1459,10 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
1459
expectlen = UTF8SKIP(s);
1460
uv = *s;
1461
1462
+ /* This is a helper function; invariants should have been handled before
1463
+ * calling it */
1464
+ assert(! NATIVE_BYTE_IS_INVARIANT(*s0));
1465
+
1466
/* A well-formed UTF-8 character, as the vast majority of calls to this
1467
* function will be for, has this expected length. For efficiency, set
1468
* things up here to return it. It will be overridden only in those rare
0 commit comments