- Timestamp:
- 29.05.2014 11:22:00 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/indexers/mgpp/lib/perf_hash.cpp
r25147 r29081 743 743 make_trans_func (num, keys); 744 744 745 if (r <= 0) 745 if (r <= 0) 746 746 SEED_RANDOM ((mg_s_long) time ((time_t *) NULL)); 747 else 747 else 748 748 SEED_RANDOM (r); 749 749 750 750 MAX_M = num + 1; 751 751 … … 767 767 return (NULL); 768 768 769 memcpy ((void *) g, (const void *) &g[1], n * sizeof (int)); 769 // use memmove not memcpy as memory areas are overlapping 770 memmove ((void *) g, (const void *) &g[1], n * sizeof (int)); 770 771 771 772 phd->MAX_L = MAX_L;