fix test/base/formatMemory int->ulong for 64-bit

This commit is contained in:
Ed McCardell 2012-04-06 10:42:18 -04:00
parent d9bd8421a3
commit 57bf3323e0

View File

@ -122,7 +122,7 @@ struct Block
* If data is longer than max, the string will end with an indication * If data is longer than max, the string will end with an indication
* of the number of extra bytes. * of the number of extra bytes.
*/ */
string formatMemory(const(ubyte[]) data, int max = 3) string formatMemory(const(ubyte[]) data, ulong max = 3)
{ {
if (max > data.length) max = data.length; if (max > data.length) max = data.length;
auto hexbytes = map!(`format("%0.2X", a)`)(data[0..max]); auto hexbytes = map!(`format("%0.2X", a)`)(data[0..max]);