mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-05-28 20:41:28 +00:00
fix test/base/formatMemory int->ulong for 64-bit
This commit is contained in:
parent
d9bd8421a3
commit
57bf3323e0
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user