diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-19 13:43:01 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-02-19 13:43:01 +0100 |
commit | 70a7e97e3cc32b0263e1428ca5fa27e720920dc2 (patch) | |
tree | 37590228b507a095340c11c7480fc47ccc2b57ac /sql/sql_join_cache.h | |
parent | 28cb3b85b916f0f15d01660911871c4172021979 (diff) | |
download | mariadb-git-70a7e97e3cc32b0263e1428ca5fa27e720920dc2.tar.gz |
Fixed high-impact Windows 64bit warnings (at least 4000 of them)
Diffstat (limited to 'sql/sql_join_cache.h')
-rw-r--r-- | sql/sql_join_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_join_cache.h b/sql/sql_join_cache.h index 4c1cb4454f1..2d7c090e778 100644 --- a/sql/sql_join_cache.h +++ b/sql/sql_join_cache.h @@ -398,7 +398,7 @@ protected: virtual uint aux_buffer_incr(ulong recno); /* Shall calculate how much space is remaining in the join buffer */ - virtual ulong rem_space() + virtual size_t rem_space() { return max(buff_size-(end_pos-buff)-aux_buff_size,0); } @@ -576,7 +576,7 @@ public: virtual int init(); /* Get the current size of the cache join buffer */ - ulong get_join_buffer_size() { return buff_size; } + size_t get_join_buffer_size() { return buff_size; } /* Set the size of the cache join buffer to a new value */ void set_join_buffer_size(size_t sz) { buff_size= sz; } @@ -921,7 +921,7 @@ protected: Calculate how much space in the buffer would not be occupied by records, key entries and additional memory for the MMR buffer. */ - ulong rem_space() + size_t rem_space() { return max(last_key_entry-end_pos-aux_buff_size,0); } |