summaryrefslogtreecommitdiff
path: root/storage/innobase/fil/fil0pagecompress.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-04-21 08:45:48 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-04-21 18:04:02 +0300
commit47141c9d9b5170bb8e6a401f4456a4d759688fe3 (patch)
treed01797ed9c169f15a3545c9a846e383c25c746cb /storage/innobase/fil/fil0pagecompress.cc
parent5684aa220cc4415fe8ee31ac044210b9ff8c7ce1 (diff)
downloadmariadb-git-47141c9d9b5170bb8e6a401f4456a4d759688fe3.tar.gz
Fix some InnoDB type mismatch
On 64-bit Windows, sizeof(ulint)!=sizeof(ulong).
Diffstat (limited to 'storage/innobase/fil/fil0pagecompress.cc')
-rw-r--r--storage/innobase/fil/fil0pagecompress.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/innobase/fil/fil0pagecompress.cc b/storage/innobase/fil/fil0pagecompress.cc
index e9a9a0c59a0..dad74ce34f2 100644
--- a/storage/innobase/fil/fil0pagecompress.cc
+++ b/storage/innobase/fil/fil0pagecompress.cc
@@ -253,7 +253,8 @@ fil_compress_page(
#endif /* HAVE_SNAPPY */
case PAGE_ZLIB_ALGORITHM:
- err = compress2(out_buf+header_len, (ulong*)&write_size, buf, len, comp_level);
+ err = compress2(out_buf+header_len, (ulong*)&write_size, buf,
+ uLong(len), comp_level);
if (err != Z_OK) {
goto err_exit;
@@ -308,7 +309,7 @@ fil_compress_page(
bool tsfound;
const page_size_t page_size = fil_space_get_page_size(space_id, &tsfound);
- fil_decompress_page(uncomp_page, comp_page, len, NULL);
+ fil_decompress_page(uncomp_page, comp_page, ulong(len), NULL);
if (buf_page_is_corrupted(false, uncomp_page, page_size, space)) {
buf_page_print(uncomp_page, page_size, 0);