summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-10-23 16:32:05 +0500
committerunknown <holyfoot/hf@mysql.com/hfmain.(none)>2007-10-23 16:32:05 +0500
commit4e5c8bc7e00fa05fb5942e1df4ac2fcaec374098 (patch)
treebe59b15d8e52deac96a808596f73050610f4cd84 /sql/ha_heap.cc
parent084753af19d3a00fa1cabf8964e6fe1d2bb3bc9c (diff)
downloadmariadb-git-4e5c8bc7e00fa05fb5942e1df4ac2fcaec374098.tar.gz
type conversions fixed to get rid of warnings
sql/ha_heap.cc: type conversion fix sql/opt_range.cc: type conversion fix
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 f829a78d0fa..4b96e5b5744 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 ? (uint) 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;