Reduce amount of warnings with pedantic compiler (#291)

This commit is contained in:
Vladislav Nepogodin 2022-01-01 14:40:18 +04:00 committed by GitHub
parent aea67743d4
commit d549cdabb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ struct Canvas {
}; };
struct XYHash { struct XYHash {
size_t operator()(const XY& xy) const { return xy.x * 1024 + xy.y; } size_t operator()(const XY& xy) const { return static_cast<size_t>(xy.x * 1024 + xy.y); }
}; };
int width_ = 0; int width_ = 0;