Skip to content

Commit

Permalink
fix overflow message (var y should not be in quotes) (JuliaLang#30905)
Browse files Browse the repository at this point in the history
* fix overflow message (remove quotes about `y`)
  • Loading branch information
JeffreySarnoff authored and KristofferC committed Jan 31, 2019
1 parent e90981b commit 566059b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/checked.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ end


throw_overflowerr_binaryop(op, x, y) = (@_noinline_meta;
throw(OverflowError(Base.invokelatest(string, x, " ", op, "y", " overflowed for type ", typeof(x)))))
throw(OverflowError(Base.invokelatest(string, x, " ", op, " ", y, " overflowed for type ", typeof(x)))))

"""
Base.checked_add(x, y)
Expand Down

0 comments on commit 566059b

Please sign in to comment.