From 70a7e97e3cc32b0263e1428ca5fa27e720920dc2 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Sat, 19 Feb 2011 13:43:01 +0100 Subject: Fixed high-impact Windows 64bit warnings (at least 4000 of them) --- sql/sql_join_cache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/sql_join_cache.h') 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); } -- cgit v1.2.1