1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Fix a compiler error related to signed v/s unsigned integer comparison. (#2915)

This commit is contained in:
Gagan Goel
2023-08-04 09:54:40 -04:00
committed by GitHub
parent 1a49a09af3
commit 4f580d109d

View File

@ -5324,7 +5324,7 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
// in groupconcat.cpp when ExeMgr processes groupconcat. As a temporary
// fix, we cap off the max groupconcat length to std::numeric_limits<int32_t>::max().
// The proper fix would be to change colWidth type to uint32_t.
if (isp->max_length <= std::numeric_limits<int32_t>::max())
if (isp->max_length <= static_cast<uint32_t>(std::numeric_limits<int32_t>::max()))
{
ct.colWidth = isp->max_length;
}