MDEV-21959: Fix a type mismatch on 64-bit systems

This commit is contained in:
Marko Mäkelä 2020-03-20 21:41:39 +02:00
parent 44298e4dea
commit fd5c36bed5

View File

@ -9043,7 +9043,7 @@ int Field_geom::store(const char *from, size_t length, CHARSET_INFO *cs)
if (!tab_name)
tab_name= "";
wkt.set_charset(&my_charset_latin1);
if (!(geom= Geometry::construct(&buffer, from, length)) ||
if (!(geom= Geometry::construct(&buffer, from, uint32(length))) ||
geom->as_wkt(&wkt, &dummy))
goto err;