Skip to content

Convert last_byte(stream) to Int in core_parser_hook#612

Merged
mlechu merged 1 commit into
JuliaLang:backports-julialang-1.12from
xal-0:core-parser-offset-type
Dec 19, 2025
Merged

Convert last_byte(stream) to Int in core_parser_hook#612
mlechu merged 1 commit into
JuliaLang:backports-julialang-1.12from
xal-0:core-parser-offset-type

Conversation

@xal-0

@xal-0 xal-0 commented Dec 19, 2025

Copy link
Copy Markdown
Member

Julia's jl_parse will type check the second element of the SimpleVector returned from core_parser_hook against Int. On newer JuliaSyntax, last_byte(::ParseStream) returns Int, but on 1.12, it returns UInt32 on 32 bit platforms, causing jl_parse to fail. Fixes JuliaLang/julia#60417.

Julia's `jl_parse` will type check the second element of the SimpleVector
returned from core_parser_hook against `Int`.  On newer JuliaSyntax,
`last_byte(::ParseStream)` returns Int, but on 1.12, it returns UInt32 on 32 bit
platforms, causing `jl_parse` to fail.
@mlechu
mlechu force-pushed the core-parser-offset-type branch from fd68396 to 5cbfebd Compare December 19, 2025 22:55
@mlechu
mlechu merged commit 4168cde into JuliaLang:backports-julialang-1.12 Dec 19, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants