Commit 626617a8 authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

Nice bug. :P

parent 2a183e62
......@@ -34,14 +34,14 @@ std::string Bus::makeName(uint32_t num, const std::string& tail) {
assert (tail.size() > 0);
char hex[10];
hex[0] = to_hex((num >> 28) & 0xff);
hex[1] = to_hex((num >> 24) & 0xff);
hex[2] = to_hex((num >> 20) & 0xff);
hex[3] = to_hex((num >> 16) & 0xff);
hex[4] = to_hex((num >> 12) & 0xff);
hex[5] = to_hex((num >> 8) & 0xff);
hex[6] = to_hex((num >> 4) & 0xff);
hex[7] = to_hex((num >> 0) & 0xff);
hex[0] = to_hex((num >> 28) & 0xf);
hex[1] = to_hex((num >> 24) & 0xf);
hex[2] = to_hex((num >> 20) & 0xf);
hex[3] = to_hex((num >> 16) & 0xf);
hex[4] = to_hex((num >> 12) & 0xf);
hex[5] = to_hex((num >> 8) & 0xf);
hex[6] = to_hex((num >> 4) & 0xf);
hex[7] = to_hex((num >> 0) & 0xf);
hex[8] = '/';
hex[9] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment