summaryrefslogtreecommitdiff
path: root/storage/xtradb/include/dyn0dyn.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/include/dyn0dyn.ic')
-rw-r--r--storage/xtradb/include/dyn0dyn.ic8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/xtradb/include/dyn0dyn.ic b/storage/xtradb/include/dyn0dyn.ic
index 177877ed1fd..0296554e2ee 100644
--- a/storage/xtradb/include/dyn0dyn.ic
+++ b/storage/xtradb/include/dyn0dyn.ic
@@ -23,9 +23,9 @@ The dynamically allocated array
Created 2/5/1996 Heikki Tuuri
*******************************************************/
-/** Value of dyn_block_struct::magic_n */
+/** Value of dyn_block_t::magic_n */
#define DYN_BLOCK_MAGIC_N 375767
-/** Flag for dyn_block_struct::used that indicates a full block */
+/** Flag for dyn_block_t::used that indicates a full block */
#define DYN_BLOCK_FULL_FLAG 0x1000000UL
/************************************************************//**
@@ -63,7 +63,7 @@ dyn_block_get_data(
{
ut_ad(block);
- return((byte*) block->data);
+ return(const_cast<byte*>(block->data));
}
/*********************************************************************//**
@@ -245,7 +245,7 @@ dyn_array_get_element(
ut_ad(block);
ut_ad(dyn_block_get_used(block) >= pos);
- return((byte*) block->data + pos);
+ return(const_cast<byte*>(block->data) + pos);
}
/************************************************************//**