This commit is contained in:
edmccard 2012-04-06 18:23:09 -04:00
parent 616337fe8a
commit 8f16b62db6

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, ulong max = 3) string formatMemory(const(ubyte[]) data, size_t 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]);