Commit f0f655d
committed
str_to_version: Use utf8_to_uv_or_die
Previously, malformed input would result in a 0 version
By redeclaring two variables that are not otherwise used to be U8 and
not char, several casts can be avoided.1 parent c2ae512 commit f0f655d
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2351 | 2351 | | |
2352 | 2352 | | |
2353 | 2353 | | |
2354 | | - | |
2355 | | - | |
| 2354 | + | |
| 2355 | + | |
2356 | 2356 | | |
2357 | 2357 | | |
2358 | 2358 | | |
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
2365 | 2365 | | |
2366 | | - | |
| 2366 | + | |
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
| |||
0 commit comments