summaryrefslogtreecommitdiff
path: root/storage/maria/ma_pagecache.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_pagecache.c')
-rwxr-xr-xstorage/maria/ma_pagecache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/maria/ma_pagecache.c b/storage/maria/ma_pagecache.c
index 1a0f466c532..614763fe6ef 100755
--- a/storage/maria/ma_pagecache.c
+++ b/storage/maria/ma_pagecache.c
@@ -625,7 +625,7 @@ static uint pagecache_fwrite(PAGECACHE *pagecache,
}
DBUG_RETURN(my_pwrite(filedesc->file, buffer, pagecache->block_size,
- (pageno)<<(pagecache->shift), flags));
+ ((my_off_t) pageno << pagecache->shift), flags));
}
@@ -642,7 +642,7 @@ static uint pagecache_fwrite(PAGECACHE *pagecache,
*/
#define pagecache_fread(pagecache, filedesc, buffer, pageno, flags) \
my_pread((filedesc)->file, buffer, pagecache->block_size, \
- (pageno)<<(pagecache->shift), flags)
+ ((my_off_t) pageno << pagecache->shift), flags)
/**