Skip to content

Commit

Permalink
fix JuliaLang#10941, int(::Float64) behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaykm authored and mbauman committed Jun 5, 2015
1 parent 80ac0d1 commit 682fe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/datafmt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function store_cell(dlmoffsets::DLMOffsets, row::Int, col::Int, quoted::Bool, st
if length(offsets) < offidx
offlen = offs_chunk_size * length(oarr)
if (offlen + offs_chunk_size) > dlmoffsets.thresh
est_tot = Int(offlen * dlmoffsets.bufflen / endpos)
est_tot = round(Int, offlen * dlmoffsets.bufflen / endpos)
if (est_tot - offlen) > offs_chunk_size # allow another chunk
# abandon offset collection
dlmoffsets.oarr = Vector{Int}[]
Expand Down

0 comments on commit 682fe8b

Please sign in to comment.