Commit 678e40b
committed
pp_pack: utf8_to_byte: Use 'uv' form, not 'uvchr'
This converts a call to utf8n_to_uvchr() to instead use
utf8_to_uv_flags().
The previous code thought it was checking for failure and croaking when
it occurred, but was checking the wrong way so that it never could fail.
And now it does a proper check and can fail, which was the original
intent.1 parent 43b31fd commit 678e40b
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
0 commit comments