Skip to content

Commit e2d37cb

Browse files
nsajkoKristofferC
authored andcommitted
Base: PCRE: exec: type assert String after construction (#57868)
Should prevent some invalidation in the sysimage. (cherry picked from commit f49f46d)
1 parent 3761029 commit e2d37cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/pcre.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ end
199199
exec(re, subject::Union{String,SubString{String}}, offset, options, match_data) =
200200
_exec(re, subject, offset, options, match_data)
201201
exec(re, subject, offset, options, match_data) =
202-
_exec(re, String(subject), offset, options, match_data)
202+
_exec(re, String(subject)::String, offset, options, match_data)
203203

204204
function _exec(re, subject, offset, options, match_data)
205205
rc = ccall((:pcre2_match_8, PCRE_LIB), Cint,

0 commit comments

Comments
 (0)