Skip to content

Commit 69ce153

Browse files
committed
avoid checking space for writing floats
1 parent 10c1d50 commit 69ce153

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
@@ -124,7 +124,7 @@ end
124124
function write_vals!(a, pos, x::Union{Float16, Float32, Float64})
125125
needed_space = Base.Ryu.neededdigits(typeof(x))
126126
available_space = length(a)-pos+1
127-
needed_space > available_space && throw(ArgumentError("not enough space in buffer to write value into it"))
127+
# needed_space > available_space && throw(ArgumentError("not enough space in buffer to write value into it"))
128128
_writeshortest(a, pos, x)
129129
end
130130

0 commit comments

Comments
 (0)