~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/hash.cc

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
  data=dynamic_element(&info->array,0,HASH_LINK*);
334
334
  halfbuff= info->blength >> 1;
335
335
 
336
 
  idx=first_index=info->records-halfbuff;
 
336
  idx= first_index= info->records-halfbuff;
337
337
  /* If some records */
338
338
  if (idx != info->records)
339
339
  {
593
593
      return(1);                        /* Not found in links */
594
594
  }
595
595
  org_link= *pos;
596
 
  empty=idx;
 
596
  empty= static_cast<uint32_t>(idx);
597
597
 
598
598
  /* Relink record from current chain */
599
599
 
601
601
  {
602
602
    if (pos->next != NO_RECORD)
603
603
    {
604
 
      empty=pos->next;
 
604
      empty= pos->next;
605
605
      *pos= data[pos->next];
606
606
    }
607
607
  }