From: Ondrej Zajicek (work) Date: Tue, 4 Oct 2016 10:45:39 +0000 (+0200) Subject: Nest: Fix signedness of large communities X-Git-Tag: v1.6.3~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a46e01eeef17a7efe876618623397f60e62afe37;p=thirdparty%2Fbird.git Nest: Fix signedness of large communities --- diff --git a/nest/a-set.c b/nest/a-set.c index 0484ab986..fde34cabc 100644 --- a/nest/a-set.c +++ b/nest/a-set.c @@ -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++ = ' '; }