diff options
Diffstat (limited to 'storage/innobase/row/row0quiesce.cc')
-rw-r--r-- | storage/innobase/row/row0quiesce.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/storage/innobase/row/row0quiesce.cc b/storage/innobase/row/row0quiesce.cc index a59a6088ad6..1d67d5a9717 100644 --- a/storage/innobase/row/row0quiesce.cc +++ b/storage/innobase/row/row0quiesce.cc @@ -71,7 +71,7 @@ row_quiesce_write_index_fields( } /* Include the NUL byte in the length. */ - ib_uint32_t len = strlen(field->name) + 1; + ib_uint32_t len = static_cast<ib_uint32_t>(strlen(field->name) + 1); ut_a(len > 1); mach_write_to_4(row, len); @@ -180,7 +180,7 @@ row_quiesce_write_indexes( /* Write the length of the index name. NUL byte is included in the length. */ - ib_uint32_t len = strlen(index->name) + 1; + ib_uint32_t len = static_cast<ib_uint32_t>(strlen(index->name) + 1); ut_a(len > 1); mach_write_to_4(row, len); @@ -267,7 +267,7 @@ row_quiesce_write_table( col_name = dict_table_get_col_name(table, dict_col_get_no(col)); /* Include the NUL byte in the length. */ - len = strlen(col_name) + 1; + len = static_cast<ib_uint32_t>(strlen(col_name) + 1); ut_a(len > 1); mach_write_to_4(row, len); @@ -333,7 +333,7 @@ row_quiesce_write_header( } /* The server hostname includes the NUL byte. */ - len = strlen(hostname) + 1; + len = static_cast<ib_uint32_t>(strlen(hostname) + 1); mach_write_to_4(value, len); DBUG_EXECUTE_IF("ib_export_io_write_failure_5", close(fileno(file));); @@ -351,7 +351,7 @@ row_quiesce_write_header( /* The table name includes the NUL byte. */ ut_a(table->name != 0); - len = strlen(table->name) + 1; + len = static_cast<ib_uint32_t>(strlen(table->name) + 1); /* Write the table name. */ mach_write_to_4(value, len); |