summaryrefslogtreecommitdiff
path: root/storage/myisam/sp_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/myisam/sp_key.c')
-rw-r--r--storage/myisam/sp_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/myisam/sp_key.c b/storage/myisam/sp_key.c
index 1d43f89cba9..77cecdc0931 100644
--- a/storage/myisam/sp_key.c
+++ b/storage/myisam/sp_key.c
@@ -142,7 +142,7 @@ static int sp_add_point_to_mbr(uchar *(*wkb), uchar *end, uint n_dims,
{
if ((*wkb) > end - 8)
return -1;
- get_double(&ord, *wkb);
+ get_double(&ord, (const byte*) *wkb);
(*wkb)+= 8;
if (ord < *mbr)
float8store((char*) mbr, ord);