Skip to content

Commit

Permalink
Colors.roundRgbColor is broken, fixes #225
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Feb 7, 2018
1 parent b6d4d18 commit af61fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminal/src/main/java/org/jline/utils/Colors.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static int roundColor(int col, int max, String dist) {
}

public static int roundRgbColor(int r, int g, int b, int max) {
return roundColor(r << 16 + g << 8 + b, COLORS_256, max, (String) null);
return roundColor((r << 16) + (g << 8) + b, COLORS_256, max, (String) null);
}

private static int roundColor(int color, int[] colors, int max, String dist) {
Expand Down

0 comments on commit af61fb3

Please sign in to comment.