Skip to content

Commit 6568a14

Browse files
committed
Fixes for 32-bit
1 parent ab46ec9 commit 6568a14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TypedSyntax/src/show.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Base.printstyled(io::IO, rootnode::MaybeTypedSyntaxNode;
3636
rt = gettyp(rootnode)
3737
nd = with_linenumber ? ndigits_linenumbers(rootnode, idxend) : 0
3838
rootnode = get_function_def(rootnode)
39-
position = Int(first_byte(rootnode)) - 1
39+
position = first_byte(rootnode) - 1
4040
with_linenumber && print_linenumber(io, rootnode, position + 1, nd)
4141
if is_function_def(rootnode)
4242
# We're printing a MethodInstance
@@ -77,7 +77,7 @@ function show_src_expr(io::IO, node::MaybeTypedSyntaxNode, position::Int, pre::S
7777
position = show_src_expr(io, child, position, cpre, cpre2; type_annotations, iswarn, hide_type_stable, nd)
7878
ctype_annotate && show_annotation(io, cT, cpost, node.source, position; iswarn)
7979
end
80-
return Int(catchup(io, node, position, nd, _lastidx+1))
80+
return catchup(io, node, position, nd, _lastidx+1)
8181
end
8282

8383
# should we print a type-annotation?
@@ -181,7 +181,7 @@ function catchup(io::IO, node::MaybeTypedSyntaxNode, position::Int, nd::Int, sto
181181
print_linenumber(io, node, position + i + 1, nd)
182182
end
183183
end
184-
position = stop - 1
184+
position = Int(stop - 1)
185185
end
186186
return position
187187
end

0 commit comments

Comments
 (0)