Skip to content

Commit d657a40

Browse files
committed
fix JuliaLang#10941, int(::Float64) behavior change
ref: JuliaLang#6211
1 parent 237cdab commit d657a40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/datafmt.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function store_cell(dlmoffsets::DLMOffsets, row::Int, col::Int, quoted::Bool, st
9898
if length(offsets) < offidx
9999
offlen = offs_chunk_size * length(oarr)
100100
if (offlen + offs_chunk_size) > dlmoffsets.thresh
101-
est_tot = Int(offlen * dlmoffsets.bufflen / endpos)
101+
est_tot = round(Int, offlen * dlmoffsets.bufflen / endpos)
102102
if (est_tot - offlen) > offs_chunk_size # allow another chunk
103103
# abandon offset collection
104104
dlmoffsets.oarr = Vector{Int}[]

0 commit comments

Comments
 (0)