Skip to content

Commit 2beb079

Browse files
committed
bug fix about writing big ints
1 parent 99447bd commit 2beb079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/byrow/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ __CODEUNIT(x) = Base.CodeUnits(__STRING(x))
110110

111111
# some experimental ideas
112112

113-
function write_vals!(a, pos, x::Integer)
113+
function write_vals!(a, pos, x::T) where T <: Union{Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64}
114114
n_positive, neg = Base.split_sign(x)
115115
#always we assume base = 10
116116
needed_space = neg + ndigits(x)

0 commit comments

Comments
 (0)