summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-10-23 14:27:11 +0500
committerunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-10-23 14:27:11 +0500
commite1dc86b0792c1717b1b54cd4eab53b3e69e18851 (patch)
treecd63c3b11cfe72d964400e90f9a1c30d50106a25 /sql/ha_heap.cc
parent578c23860021d7eda334e42b17c90e039474587f (diff)
downloadmariadb-git-e1dc86b0792c1717b1b54cd4eab53b3e69e18851.tar.gz
type conversions fixed to avoid warnings on Windows
myisam/mi_write.c: type conversion fixed myisam/sort.c: type conversion fixed sql/ha_federated.cc: type conversion fixed sql/ha_heap.cc: type conversion fixed sql/ha_innodb.cc: type conversion fixed sql/ha_myisam.cc: type conversion fixed sql/opt_range.cc: type conversion fixed sql/sql_map.cc: type conversion fixed sql/sql_select.cc: type conversion fixed sql/sql_update.cc: type conversion fixed
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index bf807407df1..f829a78d0fa 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -175,7 +175,7 @@ void ha_heap::update_key_stats()
else
{
ha_rows hash_buckets= file->s->keydef[i].hash_buckets;
- uint no_records= hash_buckets ? file->s->records/hash_buckets : 2;
+ uint no_records= hash_buckets ? (uint) file->s->records/hash_buckets : 2;
if (no_records < 2)
no_records= 2;
key->rec_per_key[key->key_parts-1]= no_records;