+2004-06-29 Nathan Sidwell <nathan@codesourcery.com>
+
+ * vec.h (VEC_T_safe_push, VEC_T_safe_insert): Tweak for when
+ size_t is bigger than int.
+
2004-06-29 Paul Brook <paul@codesourcery.com>
* target-def.h (TARGET_CXX_GET_COOKIE_SIZE,
(VEC (TDEF) **vec_, TDEF obj_) \
{ \
if (!*vec_ || (*vec_)->num == (*vec_)->alloc) \
- VEC_OP (TDEF,reserve) (vec_, ~0u); \
+ VEC_OP (TDEF,reserve) (vec_, ~(size_t)0); \
\
return VEC_OP (TDEF,quick_push) (*vec_, obj_); \
} \
(VEC (TDEF) **vec_, size_t ix_, TDEF obj_) \
{ \
if (!*vec_ || (*vec_)->num == (*vec_)->alloc) \
- VEC_OP (TDEF,reserve) (vec_, ~0u); \
+ VEC_OP (TDEF,reserve) (vec_, ~(size_t)0); \
\
return VEC_OP (TDEF,quick_insert) (*vec_, ix_, obj_); \
} \
(VEC (TDEF) **vec_, const TDEF *obj_) \
{ \
if (!*vec_ || (*vec_)->num == (*vec_)->alloc) \
- VEC_OP (TDEF,reserve) (vec_, ~0u); \
+ VEC_OP (TDEF,reserve) (vec_, ~(size_t)0); \
\
return VEC_OP (TDEF,quick_push) (*vec_, obj_); \
} \
(VEC (TDEF) **vec_, size_t ix_, const TDEF *obj_) \
{ \
if (!*vec_ || (*vec_)->num == (*vec_)->alloc) \
- VEC_OP (TDEF,reserve) (vec_, ~0u); \
+ VEC_OP (TDEF,reserve) (vec_, ~(size_t)0); \
\
return VEC_OP (TDEF,quick_insert) (*vec_, ix_, obj_); \
} \