summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <reggie@mdk10.(none)>2005-05-20 16:34:59 -0500
committerunknown <reggie@mdk10.(none)>2005-05-20 16:34:59 -0500
commit606d8a5ab0000ccf1120201db21f92ef69b52a5c (patch)
tree1467155c10e8996d9cce3ec39db813852687c942 /myisam
parent03e26e50b9829124246ffb6b755e3809c126cb95 (diff)
parentc1ae672adda45a1b8c5637b8f4d6a3f91378ea20 (diff)
downloadmariadb-git-606d8a5ab0000ccf1120201db21f92ef69b52a5c.tar.gz
fixed conflicts
VC++Files/mysys/mysys.dsp: Auto merged include/my_sys.h: Auto merged sql/sql_db.cc: Auto merged
Diffstat (limited to 'myisam')
-rw-r--r--myisam/sp_key.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/myisam/sp_key.c b/myisam/sp_key.c
index b61e8094cde..1d43f89cba9 100644
--- a/myisam/sp_key.c
+++ b/myisam/sp_key.c
@@ -32,7 +32,11 @@ static int sp_get_geometry_mbr(uchar *(*wkb), uchar *end, uint n_dims,
double *mbr, int top);
static int sp_mbr_from_wkb(uchar (*wkb), uint size, uint n_dims, double *mbr);
-
+static void get_double(double *d, const byte *pos)
+{
+ float8get(*d, pos);
+}
+
uint sp_make_key(register MI_INFO *info, uint keynr, uchar *key,
const byte *record, my_off_t filepos)
{
@@ -80,7 +84,7 @@ uint sp_make_key(register MI_INFO *info, uint keynr, uchar *key,
else if (keyseg->type == HA_KEYTYPE_DOUBLE)
{
double nr;
- float8get(nr, pos);
+ get_double(&nr, pos);
if (isnan(nr))
{
bzero(key, length);
@@ -138,7 +142,7 @@ static int sp_add_point_to_mbr(uchar *(*wkb), uchar *end, uint n_dims,
{
if ((*wkb) > end - 8)
return -1;
- float8get(ord, (*wkb));
+ get_double(&ord, *wkb);
(*wkb)+= 8;
if (ord < *mbr)
float8store((char*) mbr, ord);