trans-array.c (structure_alloc_comps): Use correct type for null pointer constant.

2007-02-27  Richard Guenther  <rguenther@suse.de>

	* trans-array.c (structure_alloc_comps): Use correct type
	for null pointer constant.

From-SVN: r122375
This commit is contained in:
Richard Guenther 2007-02-27 14:26:13 +00:00 committed by Richard Biener
parent 329437dd43
commit d711ed8730
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-02-27 Richard Guenther <rguenther@suse.de>
* trans-array.c (structure_alloc_comps): Use correct type
for null pointer constant.
2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
* gfortran.texi: Standardize title page, remove version number

View File

@ -4990,7 +4990,7 @@ structure_alloc_comps (gfc_symbol * der_type, tree decl,
null_cond = gfc_conv_descriptor_data_get (decl);
null_cond = build2 (NE_EXPR, boolean_type_node, null_cond,
build_int_cst (TREE_TYPE (tmp), 0));
build_int_cst (TREE_TYPE (null_cond), 0));
}
else
{