From d549cdabb05b8935fae956cbbb38821e6598f9d6 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Sat, 1 Jan 2022 14:40:18 +0400 Subject: [PATCH] Reduce amount of warnings with pedantic compiler (#291) --- include/ftxui/dom/canvas.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ftxui/dom/canvas.hpp b/include/ftxui/dom/canvas.hpp index 20de184..b2113b5 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;