Fix windows warning. (#332)

This commit is contained in:
Arthur Sonzogni
2022-02-13 10:51:47 +01:00
committed by GitHub
parent 8ba3698437
commit 62747a49b6
6 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ int main(int argc, const char* argv[]) {
// Plot a function:
std::vector<int> ys(100);
for (int x = 0; x < 100; x++)
ys[x] = 80 + 20 * cos(x * 0.2);
ys[x] = int(80 + 20 * cos(x * 0.2));
for (int x = 0; x < 99; x++)
c.DrawPointLine(x, ys[x], x + 1, ys[x + 1], Color::Red);