Skip to content

Commit

Permalink
chore: Use explicit int type
Browse files Browse the repository at this point in the history
  • Loading branch information
Elscrux committed Dec 29, 2024
1 parent 793ec92 commit 96b6962
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ private static KipuQuboProblem parseKipuQubo(LpFileReader lpReader)
throw new ConversionException("Only quadratic terms are supported");
}

var var1 = getVariableIndex.applyAsInt(multiplicands.get(0));
var var2 = getVariableIndex.applyAsInt(multiplicands.get(1));
int var1 = getVariableIndex.applyAsInt(multiplicands.get(0));
int var2 = getVariableIndex.applyAsInt(multiplicands.get(1));
qubo.getCoefficients().put(
var1 == var2
? String.format("(%d,)", var1)
Expand Down

0 comments on commit 96b6962

Please sign in to comment.