[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user