Skip to content

Commit

Permalink
MDEV-20950: Fix 32-bit Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and dr-m committed Dec 21, 2019
1 parent aaaf6ce commit 496532b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion storage/innobase/include/rem0rec.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ value.
@return offset of the start of the field, SQL null flag and extern
storage flag ORed */
UNIV_INLINE
ulint
offset_t
rec_2_get_field_end_info(
/*=====================*/
const rec_t* rec, /*!< in: record */
Expand Down
2 changes: 1 addition & 1 deletion storage/innobase/include/rem0rec.ic
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ value.
@return offset of the start of the field, SQL null flag and extern
storage flag ORed */
UNIV_INLINE
ulint
offset_t
rec_2_get_field_end_info(
/*=====================*/
const rec_t* rec, /*!< in: record */
Expand Down
2 changes: 1 addition & 1 deletion storage/innobase/page/page0zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ page_zip_decompress_low(
offsets = static_cast<offset_t*>(
mem_heap_alloc(heap, n * sizeof(ulint)));

*offsets = n;
rec_offs_set_n_alloc(offsets, n);
}

/* Decompress the records in heap_no order. */
Expand Down
3 changes: 2 additions & 1 deletion storage/innobase/rem/rem0rec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ rec_init_offsets(
/* Old-style record: determine extra size and end offsets */
offs = REC_N_OLD_EXTRA_BYTES;
if (rec_get_1byte_offs_flag(rec)) {
offs += rec_offs_n_fields(offsets);
offs += static_cast<offset_t>(
rec_offs_n_fields(offsets));
*rec_offs_base(offsets) = offs;
/* Determine offsets to fields */
do {
Expand Down
6 changes: 4 additions & 2 deletions storage/innobase/row/row0merge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1061,8 +1061,10 @@ row_merge_heap_create(
*offsets2 = static_cast<offset_t*>(
mem_heap_alloc(heap, i * sizeof **offsets2));

(*offsets1)[0] = (*offsets2)[0] = i;
(*offsets1)[1] = (*offsets2)[1] = dict_index_get_n_fields(index);
rec_offs_set_n_alloc(*offsets1, i);
rec_offs_set_n_alloc(*offsets2, i);
rec_offs_set_n_fields(*offsets1, dict_index_get_n_fields(index));
rec_offs_set_n_fields(*offsets2, dict_index_get_n_fields(index));

return(heap);
}
Expand Down

0 comments on commit 496532b

Please sign in to comment.