[msvc] Fix warnings, mainly casting to smaller types (#270)

If the checks by GitHub Actions checks are met, then it seems good to go.  Thanks for supporting FOSS4G!
This commit is contained in:
Tadej Novak
2022-04-22 20:40:55 +02:00
committed by GitHub
parent cf41e113f9
commit 32ed70c95d
121 changed files with 645 additions and 459 deletions

View File

@@ -29,7 +29,7 @@ Result<Color> rgba(double r, double g, double b, double a) {
"]: 'a' must be between 0 and 1."
};
}
return Color(r / 255 * a, g / 255 * a, b / 255 * a, a);
return Color(static_cast<float>(r / 255 * a), static_cast<float>(g / 255 * a), static_cast<float>(b / 255 * a), static_cast<float>(a));
}
} // namespace expression