aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 1f134528374..fb4fa68dc59 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -531,12 +531,12 @@ static inline int VEC_OP (T,base,iterate) \
{ \
if (vec_ && ix_ < vec_->num) \
{ \
- *ptr = vec_->vec[ix_]; \
+ *ptr = (T) vec_->vec[ix_]; \
return 1; \
} \
else \
{ \
- *ptr = 0; \
+ *ptr = (T) 0; \
return 0; \
} \
} \