@@ -261,12 +261,12 @@ tryparse(::Type{Union{}}, slurp...; kwargs...) = error("cannot parse a value as
261
261
262
262
function tryparse (:: Type{Float64} , s:: String )
263
263
hasvalue, val = ccall (:jl_try_substrtod , Tuple{Bool, Float64},
264
- (Ptr{UInt8},Csize_t,Csize_t), s, 0 , sizeof (s))
264
+ (Ptr{UInt8},Csize_t,Csize_t), s, 0 , sizeof (s) % UInt )
265
265
hasvalue ? val : nothing
266
266
end
267
267
function tryparse (:: Type{Float64} , s:: SubString{String} )
268
268
hasvalue, val = ccall (:jl_try_substrtod , Tuple{Bool, Float64},
269
- (Ptr{UInt8},Csize_t,Csize_t), s. string, s. offset, s. ncodeunits)
269
+ (Ptr{UInt8},Csize_t,Csize_t), s. string, s. offset, s. ncodeunits % UInt )
270
270
hasvalue ? val : nothing
271
271
end
272
272
function tryparse_internal (:: Type{Float64} , s:: String , startpos:: Int , endpos:: Int )
@@ -281,12 +281,12 @@ function tryparse_internal(::Type{Float64}, s::SubString{String}, startpos::Int,
281
281
end
282
282
function tryparse (:: Type{Float32} , s:: String )
283
283
hasvalue, val = ccall (:jl_try_substrtof , Tuple{Bool, Float32},
284
- (Ptr{UInt8},Csize_t,Csize_t), s, 0 , sizeof (s))
284
+ (Ptr{UInt8},Csize_t,Csize_t), s, 0 , sizeof (s) % UInt )
285
285
hasvalue ? val : nothing
286
286
end
287
287
function tryparse (:: Type{Float32} , s:: SubString{String} )
288
288
hasvalue, val = ccall (:jl_try_substrtof , Tuple{Bool, Float32},
289
- (Ptr{UInt8},Csize_t,Csize_t), s. string, s. offset, s. ncodeunits)
289
+ (Ptr{UInt8},Csize_t,Csize_t), s. string, s. offset, s. ncodeunits % UInt )
290
290
hasvalue ? val : nothing
291
291
end
292
292
function tryparse_internal (:: Type{Float32} , s:: String , startpos:: Int , endpos:: Int )
0 commit comments