diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-03-21 23:06:16 +0300 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-03-21 23:06:16 +0300 |
commit | d56e74eb9ba27ae98884b9ddb37c3d7a575b50fe (patch) | |
tree | b72181de895cc81668691b7a4457a8136b9a1dda /sql/sql_test.cc | |
parent | 792c67ff618f7fa5edb39563b0ccf48b4a30db0f (diff) | |
download | mariadb-git-d56e74eb9ba27ae98884b9ddb37c3d7a575b50fe.tar.gz |
MWL#90: Address review feedback part #2
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index e704c4ca175..cdab2ee8a6f 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -182,7 +182,8 @@ TEST_join(JOIN *join) in order not to garble the tabular output below. */ String ref_key_parts[MAX_TABLES]; - for (i= 0; i < (jt_range->end - jt_range->start); i++) + int tables_in_range= jt_range->end - jt_range->start; + for (i= 0; i < tables_in_range; i++) { JOIN_TAB *tab= jt_range->start + i; for (ref= 0; ref < tab->ref.key_parts; ref++) @@ -192,7 +193,7 @@ TEST_join(JOIN *join) } } - for (i= 0; i < (jt_range->end - jt_range->start); i++) + for (i= 0; i < tables_in_range; i++) { JOIN_TAB *tab= jt_range->start + i; TABLE *form=tab->table; |