Skip to content

Commit 9324564

Browse files
committed
Switch to endof
1 parent ee8aa0f commit 9324564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedPointDecimals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function parse{T, f}(::Type{FD{T, f}}, str::AbstractString)
301301
ending = ex - 1
302302
else
303303
pow = 0
304-
ending = length(str)
304+
ending = endof(str)
305305
end
306306

307307
# Remove the decimal place from the string

0 commit comments

Comments
 (0)