Skip to content

Commit

Permalink
fix performance of dec(Int32)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Nov 8, 2012
1 parent 98a2bfc commit 77a2f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/intfuncs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function dec(x::Unsigned, pad::Int, neg::Bool)
a = Array(Uint8,i)
while i > neg
a[i] = '0'+rem(x,10)
x = div(x,10)
x = oftype(x,div(x,10))
i -= 1
end
if neg; a[1]='-'; end
Expand Down

0 comments on commit 77a2f65

Please sign in to comment.