Skip to content

Commit fb01193

Browse files
committed
make windows compiler happy
1 parent 0372f98 commit fb01193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/handler.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6523,7 +6523,7 @@ static int check_duplicate_long_entry_key(TABLE *table, handler *h, uchar *new_r
65236523
uint arg_count= temp->argument_count();
65246524
do
65256525
{
6526-
long diff= table->check_unique_buf - new_rec;
6526+
my_ptrdiff_t diff= table->check_unique_buf - new_rec;
65276527
is_same= true;
65286528
for (uint j=0; is_same && j < arg_count; j++)
65296529
{
@@ -6612,7 +6612,7 @@ static int check_duplicate_long_entries_update(TABLE *table, handler *h, uchar *
66126612
Here we are comparing whether new record and old record are same
66136613
with respect to fields in hash_str
66146614
*/
6615-
long reclength= table->record[1]-table->record[0];
6615+
uint reclength= (uint) (table->record[1] - table->record[0]);
66166616
if (!table->update_handler)
66176617
table->clone_handler_for_update();
66186618
for (uint i= 0; i < table->s->keys; i++)

0 commit comments

Comments
 (0)