fixes
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@900 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1parser/asn1p_expr.c b/libasn1parser/asn1p_expr.c
index 5e2aa34..f5626a7 100644
--- a/libasn1parser/asn1p_expr.c
+++ b/libasn1parser/asn1p_expr.c
@@ -144,7 +144,7 @@
char *asn1p_tag2string(struct asn1p_type_tag_s *tag, char *buf) {
- static buf_stat[TAG2STRING_BUFFER_SIZE];
+ static char buf_stat[TAG2STRING_BUFFER_SIZE];
char *start;
char *end;
@@ -170,7 +170,7 @@
}
buf += snprintf(buf + strlen(buf), end - buf,
"%" PRIdASN "]", tag->tag_value);
- assert((buf - end) > sizeof(" IMPLICIT "));
+ assert((unsigned int)(buf - end) > sizeof(" IMPLICIT "));
switch(tag->tag_mode) {
case TM_DEFAULT: break;