Fix test compilation error on 64-bit.

This commit is contained in:
jmdavis 2011-06-04 23:22:48 -07:00
parent bf8df92ee4
commit 73283a87f2

View file

@ -2160,7 +2160,7 @@ unittest
foreach (word; splitter(strip(line))) { foreach (word; splitter(strip(line))) {
if (word in dictionary) continue; // Nothing to do if (word in dictionary) continue; // Nothing to do
auto newID = dictionary.length; auto newID = dictionary.length;
dictionary[to!string(word)] = newID; dictionary[to!string(word)] = cast(uint)newID;
} }
} }
assert(dictionary.length == 5); assert(dictionary.length == 5);