Nest: Fix signedness of large communities
This commit is contained in:
parent
cec4a73ccb
commit
a46e01eeef
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ ec_set_format(struct adata *set, int from, byte *buf, uint size)
|
||||||
int
|
int
|
||||||
lc_format(byte *buf, lcomm lc)
|
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
|
int
|
||||||
|
@ -167,7 +167,7 @@ lc_set_format(struct adata *set, int from, byte *buf, uint bufsize)
|
||||||
return i;
|
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++ = ' ';
|
*buf++ = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue