trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force like types in comparsion.

* trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force
  like types in comparsion.

From-SVN: r100269
This commit is contained in:
Steven G. Kargl 2005-05-27 18:20:52 +00:00 committed by Steven G. Kargl
parent 30d2e94365
commit 4c1dd580b3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-05-27 Steven G. Kargl <kargls@comcast.net>
* trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force
like types in comparsion.
2005-05-26 Kazu Hirata <kazu@cs.umass.edu>
* data.c, parse.c, trans-array.c, trans-decl.c,

View File

@ -4000,7 +4000,8 @@ gfc_trans_deferred_array (gfc_symbol * sym, tree body)
deallocate = gfc_array_deallocate (descriptor);
tmp = gfc_conv_descriptor_data (descriptor);
tmp = build2 (NE_EXPR, boolean_type_node, tmp, integer_zero_node);
tmp = build2 (NE_EXPR, boolean_type_node, tmp,
build_int_cst (TREE_TYPE (tmp), 0));
tmp = build3_v (COND_EXPR, tmp, deallocate, build_empty_stmt ());
gfc_add_expr_to_block (&block, tmp);