Skip to content

Commit

Permalink
Fixed type warning in color_map.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mercere99 committed Feb 15, 2019
1 parent 2b7e17b commit 4c1b826
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/web/color_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ namespace emp {
bs = x;
}

int r = (rs + m) * 255;
int g = (gs + m) * 255;
int b = (bs + m) * 255;
int r = (int) ((rs + m) * 255);
int g = (int) ((gs + m) * 255);
int b = (int) ((bs + m) * 255);

return ColorRGB(r, g, b);
}
Expand Down

0 comments on commit 4c1b826

Please sign in to comment.