summaryrefslogtreecommitdiff
path: root/gcc/vec.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-20 20:25:02 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-20 20:25:02 +0000
commitf85ee61a128724417a8209023b99a671088880c4 (patch)
tree01ed7243126b3ab8ae00803b9245b610c7d4977d /gcc/vec.c
parenteb2ad60c098f2e1fd744d428636e5af259c3bc72 (diff)
downloadgcc-f85ee61a128724417a8209023b99a671088880c4.tar.gz
* vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert, VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not size_t. (struct VEC): Use unsigned for num and alloc. * vec.c (struct vec_prefix): Likewise. (vec_o_reserve): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84973 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/vec.c')
-rw-r--r--gcc/vec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/vec.c b/gcc/vec.c
index 45acc84803b..a597db6dd86 100644
--- a/gcc/vec.c
+++ b/gcc/vec.c
@@ -29,8 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
struct vec_prefix
{
- size_t num;
- size_t alloc;
+ unsigned num;
+ unsigned alloc;
void *vec[1];
};
@@ -57,7 +57,7 @@ vec_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size
MEM_STAT_DECL)
{
struct vec_prefix *pfx = vec;
- size_t alloc = pfx ? pfx->num : 0;
+ unsigned alloc = pfx ? pfx->num : 0;
if (reserve >= 0)
alloc += reserve;