mirror of https://gerrit.osmocom.org/asn1c
do not account negatives
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1275 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
0a885a6565
commit
1b91c61be8
|
@ -70,6 +70,7 @@ static inline void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
|
|||
int __nl = ((nl) != 0); \
|
||||
int __i; \
|
||||
if(__nl) _ASN_CALLBACK("\n", 1); \
|
||||
if(__level < 0) __level = 0; \
|
||||
for(__i = 0; __i < __level; __i++) \
|
||||
_ASN_CALLBACK(" ", 4); \
|
||||
er.encoded += __nl + 4 * __level; \
|
||||
|
|
Loading…
Reference in New Issue