diff options
author | warren%netscape.com <devnull@localhost> | 1998-09-01 00:17:09 +0000 |
---|---|---|
committer | warren%netscape.com <devnull@localhost> | 1998-09-01 00:17:09 +0000 |
commit | fdf57ed65264a4c98861754dc1464c0167976acb (patch) | |
tree | 91c4775e2d7d7428bbdb43df393413c1d4c29748 | |
parent | cc625b1f6850f7cc8051517aa4547e3b05a18e27 (diff) | |
download | nspr-hg-fdf57ed65264a4c98861754dc1464c0167976acb.tar.gz |
Made counts be unsigned.
-rw-r--r-- | lib/ds/plvector.c | 4 | ||||
-rw-r--r-- | lib/ds/plvector.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ds/plvector.c b/lib/ds/plvector.c index e37dff40..7cde6f35 100644 --- a/lib/ds/plvector.c +++ b/lib/ds/plvector.c @@ -238,7 +238,7 @@ PL_VectorSet(PLVector* v, PRUint32 index, void* newElement) } /* Adds at the end */ -PR_IMPLEMENT(PRInt32) +PR_IMPLEMENT(PRUint32) PL_VectorAdd(PLVector* v, void* newElement) { PRUint32 index = v->size; @@ -248,7 +248,7 @@ PL_VectorAdd(PLVector* v, void* newElement) } #endif PL_VectorSet(v, index, newElement); - return (PRInt32)index; + return index; } /* Inserts new element count times at index */ diff --git a/lib/ds/plvector.h b/lib/ds/plvector.h index e71a152f..a82e849d 100644 --- a/lib/ds/plvector.h +++ b/lib/ds/plvector.h @@ -77,7 +77,7 @@ PR_EXTERN(void) PL_VectorSet(PLVector* v, PRUint32 index, void* newElement); /* Adds at the end */ -PR_EXTERN(PRInt32) +PR_EXTERN(PRUint32) PL_VectorAdd(PLVector* v, void* newElement); /* Inserts new element count times at index */ |