Skip to content

Commit 0f71d64

Browse files
BoykoAlexmickaelistria
authored andcommitted
Division should result in a float
1 parent c432f1e commit 0f71d64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.lsp4e.jdt/src/org/eclipse/lsp4e/jdt/LSJavaProposal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LSJavaProposal implements IJavaCompletionProposal {
3131
// Based on org.eclipse.jdt.internal.ui.text.java.RelevanceComputer
3232
private static final int DEFAULT_RELEVANCE = (RelevanceConstants.R_DEFAULT + LS_DEFAULT_RELEVANCE) * 16;
3333

34-
private static final int RANGE_WITHIN_CATEGORY = Math.round((MAX_BASE_RELEVANCE - DEFAULT_RELEVANCE) / 4);
34+
private static final int RANGE_WITHIN_CATEGORY = Math.round((MAX_BASE_RELEVANCE - DEFAULT_RELEVANCE) / 4f);
3535

3636
protected ICompletionProposal delegate;
3737
private boolean relevanceComputed = false;

0 commit comments

Comments
 (0)