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

View File

@@ -124,7 +124,7 @@ struct Canvas {
};
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;