[Commits] bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (monty:2908)

Michael Widenius monty at askmonty.org
Tue Sep 7 13:58:00 EEST 2010


#At lp:maria based on revid:knielsen at knielsen-hq.org-20100906114212-hmq0pu5qfkd3879z

 2908 Michael Widenius	2010-09-07
      Fixed compiler warnings
      modified:
        storage/xtradb/buf/buf0buf.c

=== modified file 'storage/xtradb/buf/buf0buf.c'
--- a/storage/xtradb/buf/buf0buf.c	2010-09-06 11:42:12 +0000
+++ b/storage/xtradb/buf/buf0buf.c	2010-09-07 10:57:59 +0000
@@ -792,7 +792,7 @@ buf_block_reuse(
 	ptrdiff_t	frame_offset)
 {
 	/* block_init */
-	block->frame = ((char*)(block->frame) + frame_offset);
+	block->frame = ((byte*)(block->frame) + frame_offset);
 
 	UNIV_MEM_DESC(block->frame, UNIV_PAGE_SIZE, block);
 
@@ -809,7 +809,7 @@ buf_block_reuse(
 #endif /* UNIV_AHI_DEBUG || UNIV_DEBUG */
 
 	if (block->page.zip.data)
-		block->page.zip.data = ((char*)(block->page.zip.data) + frame_offset);
+		block->page.zip.data = ((byte*)(block->page.zip.data) + frame_offset);
 
 	block->is_hashed = FALSE;
 



More information about the commits mailing list