diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-10-04 12:45:39 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-10-04 12:45:39 +0200 |
commit | a46e01eeef17a7efe876618623397f60e62afe37 (patch) | |
tree | 421d292204f11387749b1f71748c7683607a2010 | |
parent | cec4a73ccb22ed412e87560e4210b6df40832aad (diff) |
Nest: Fix signedness of large communities
-rw-r--r-- | nest/a-set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/a-set.c b/nest/a-set.c index 0484ab98..fde34cab 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++ = ' '; } |