comparison doodle/utils/prog/dupes.d @ 123:0d427170a805

Move to 64-bit
author David Bryant <bagnose@gmail.com>
date Wed, 04 May 2011 22:19:44 +0930
parents f1cf62339ed5
children 89016abde9fe
comparison
equal deleted inserted replaced
122:403c34305a39 123:0d427170a805
126 writefln("Processing %s files", file_array.length); 126 writefln("Processing %s files", file_array.length);
127 127
128 uint[][ulong] size_to_file_indices; 128 uint[][ulong] size_to_file_indices;
129 bool[ulong] duplicate_sizes; 129 bool[ulong] duplicate_sizes;
130 130
131 foreach (index, file; file_array) { 131 foreach (uint index, file; file_array) {
132 //writefln("%s %s %s", index, file.name, file.size); 132 //writefln("%s %s %s", index, file.name, file.size);
133 133
134 if (uint[] * indices = (file.size in size_to_file_indices)) { 134 if (uint[] * indices = (file.size in size_to_file_indices)) {
135 if (indices.length == 1) { 135 if (indices.length == 1) {
136 // Second time we've seen a file of this size, 136 // Second time we've seen a file of this size,