Skip to content

Commit

Permalink
Fixed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 5, 2023
1 parent 30ca48a commit 521a844
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nanosvg.h
Expand Up @@ -1301,9 +1301,9 @@ static unsigned int nsvg__parseColorRGB(const char* str)
else break;
}
if (i == 3) {
rgbi[0] = roundf(rgbf[0] * 2.55f);
rgbi[1] = roundf(rgbf[1] * 2.55f);
rgbi[2] = roundf(rgbf[2] * 2.55f);
rgbi[0] = (unsigned int)roundf(rgbf[0] * 2.55f);
rgbi[1] = (unsigned int)roundf(rgbf[1] * 2.55f);
rgbi[2] = (unsigned int)roundf(rgbf[2] * 2.55f);
} else {
rgbi[0] = rgbi[1] = rgbi[2] = 128;
}
Expand Down

0 comments on commit 521a844

Please sign in to comment.