Commit a46e01ee authored by Ondřej Zajíček's avatar Ondřej Zajíček

Nest: Fix signedness of large communities

parent cec4a73c
......@@ -144,7 +144,7 @@ ec_set_format(struct adata *set, int from, byte *buf, uint size)
int
lc_format(byte *buf, lcomm lc)
{
return bsprintf(buf, "(%d, %d, %d)", lc.asn, lc.ldp1, lc.ldp2);
return bsprintf(buf, "(%u, %u, %u)", lc.asn, lc.ldp1, lc.ldp2);
}
int
......@@ -167,7 +167,7 @@ lc_set_format(struct adata *set, int from, byte *buf, uint bufsize)
return i;
}
buf += bsprintf(buf, "(%d, %d, %d)", d[i], d[i+1], d[i+2]);
buf += bsprintf(buf, "(%u, %u, %u)", d[i], d[i+1], d[i+2]);
*buf++ = ' ';
}
......
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