Commit 3cbf09de by Nathan Sidwell Committed by Nathan Sidwell

vec.h (VEC_T_length, [...]): Use unsigned, not size_t.

	* 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.

From-SVN: r84973
parent 5d33f41f
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
2004-07-20 Nathan Sidwell <nathan@codesourcery.com> 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
* 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.
* dbxout.c (dbxout_type): Fix printf format. * dbxout.c (dbxout_type): Fix printf format.
* tree.h (binfo_member): Remove. * tree.h (binfo_member): Remove.
......
...@@ -29,8 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -29,8 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
struct vec_prefix struct vec_prefix
{ {
size_t num; unsigned num;
size_t alloc; unsigned alloc;
void *vec[1]; void *vec[1];
}; };
...@@ -57,7 +57,7 @@ vec_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size ...@@ -57,7 +57,7 @@ vec_o_reserve (void *vec, int reserve, size_t vec_offset, size_t elt_size
MEM_STAT_DECL) MEM_STAT_DECL)
{ {
struct vec_prefix *pfx = vec; struct vec_prefix *pfx = vec;
size_t alloc = pfx ? pfx->num : 0; unsigned alloc = pfx ? pfx->num : 0;
if (reserve >= 0) if (reserve >= 0)
alloc += reserve; alloc += reserve;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment