Commit fd5c36be authored by Marko Mäkelä's avatar Marko Mäkelä

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

parent 44298e4d
...@@ -9043,7 +9043,7 @@ int Field_geom::store(const char *from, size_t length, CHARSET_INFO *cs) ...@@ -9043,7 +9043,7 @@ int Field_geom::store(const char *from, size_t length, CHARSET_INFO *cs)
if (!tab_name) if (!tab_name)
tab_name= ""; tab_name= "";
wkt.set_charset(&my_charset_latin1); 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)) geom->as_wkt(&wkt, &dummy))
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment