diff --git a/include/ftxui/dom/canvas.hpp b/include/ftxui/dom/canvas.hpp index 20de184c..b2113b56 100644 --- a/include/ftxui/dom/canvas.hpp +++ b/include/ftxui/dom/canvas.hpp @@ -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(xy.x * 1024 + xy.y); } }; int width_ = 0;