Skip to content

Commit 5e003e5

Browse files
authored
Update toint.jl
1 parent e76e90e commit 5e003e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ADNLPProblems/toint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function toint(; n::Int = default_nvar, type::Type{T} = Float64, kwargs...) wher
44
function f(x; n = length(x))
55
s = zero(T)
66
for i = 1:n
7-
ci = 1 + (i / 10)
7+
ci = 1 + (i // 10)
88

99
for j = max(1, i - 2):min(n, i + 2)
1010
aij = 5 * (1 + mod(i, 5) + mod(j, 5))

0 commit comments

Comments
 (0)