asn1.c: Avoid warnings:

asn1.c:747: warning: comparison between signed and unsigned
asn1.c:785: warning: comparison between signed and unsigned


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5297 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
andre 2011-04-06 15:06:02 +00:00
parent 0961818a8f
commit d3215b67df
1 changed files with 2 additions and 2 deletions

View File

@ -729,10 +729,10 @@ static int asn1_write_element(sc_context_t *ctx, unsigned int tag,
{
unsigned char t;
unsigned char *buf, *p;
int c = 0, ii;
int c = 0;
unsigned short_tag;
unsigned char tag_char[3] = {0, 0, 0};
size_t tag_len;
size_t tag_len, ii;
short_tag = tag & SC_ASN1_TAG_MASK;
for (tag_len = 0; short_tag >> (8 * tag_len); tag_len++)