Fixes signedness in format route attributes.

This commit is contained in:
Ondrej Zajicek 2010-02-26 13:55:22 +01:00
parent ff2857b03d
commit 212ff33582

View file

@ -400,7 +400,7 @@ ea_format(eattr *e, byte *buf)
switch (e->type & EAF_TYPE_MASK) switch (e->type & EAF_TYPE_MASK)
{ {
case EAF_TYPE_INT: case EAF_TYPE_INT:
bsprintf(buf, "%d", e->u.data); bsprintf(buf, "%u", e->u.data);
break; break;
case EAF_TYPE_OPAQUE: case EAF_TYPE_OPAQUE:
for(i=0; i<ad->length; i++) for(i=0; i<ad->length; i++)