diff --git a/storage/myisam/rt_index.c b/storage/myisam/rt_index.c index 20066c4dbba..cf144839dd1 100644 --- a/storage/myisam/rt_index.c +++ b/storage/myisam/rt_index.c @@ -973,7 +973,7 @@ int rtree_delete(MI_INFO *info, uint keynr, uchar *key, uint key_length) } if (res) { - int j; + ulong j; DBUG_PRINT("rtree", ("root has been split, adjust levels")); for (j= i; j < ReinsertList.n_pages; j++) {