From 36a76d6304066fec1d72ea50af44bc008cc50bbe Mon Sep 17 00:00:00 2001 From: vlm Date: Sun, 5 Sep 2004 10:40:28 +0000 Subject: unsigned git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@254 59561ff5-6e30-0410-9f3c-9617f08c8826 --- libasn1parser/asn1p_constr.c | 4 ++-- libasn1parser/asn1p_constr.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libasn1parser') diff --git a/libasn1parser/asn1p_constr.c b/libasn1parser/asn1p_constr.c index 26f920f4..7a38f3c1 100644 --- a/libasn1parser/asn1p_constr.c +++ b/libasn1parser/asn1p_constr.c @@ -55,7 +55,7 @@ asn1p_constraint_clone(asn1p_constraint_t *src) { clone = asn1p_constraint_new(src->_lineno); if(clone) { - int i; + unsigned int i; clone->type = src->type; clone->presence = src->presence; @@ -92,7 +92,7 @@ asn1p_constraint_insert(asn1p_constraint_t *into, asn1p_constraint_t *what) { * Make sure there's enough space to add an element. */ if(into->el_count == into->el_size) { - int newsize = into->el_size?into->el_size<<2:4; + unsigned int newsize = into->el_size?into->el_size<<2:4; void *p; p = realloc(into->elements, newsize * sizeof(into->elements[0])); diff --git a/libasn1parser/asn1p_constr.h b/libasn1parser/asn1p_constr.h index c83d58bd..7c425b45 100644 --- a/libasn1parser/asn1p_constr.h +++ b/libasn1parser/asn1p_constr.h @@ -53,8 +53,8 @@ typedef struct asn1p_constraint_s { * A collection of constraint elements. */ struct asn1p_constraint_s **elements; - int el_count; /* Number of meaningful elements */ - int el_size; /* Size of the allocated (elements) */ + unsigned int el_count; /* Number of meaningful elements */ + unsigned int el_size; /* Size of the allocated (elements) */ int _lineno; /* Position in a source file */ int _compile_mark; /* Marker used by the compiler */ -- cgit v1.2.3