Commit a8847a7f by H.J. Lu Committed by H.J. Lu

c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC on return from tree_low_cst.

2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>

	* c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
	on return from tree_low_cst.

From-SVN: r145109
parent 8ec0d73b
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
* c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
on return from tree_low_cst.
2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com> 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c++/36799 PR c++/36799
......
...@@ -3315,8 +3315,8 @@ pointer_int_sum (location_t location, enum tree_code resultcode, ...@@ -3315,8 +3315,8 @@ pointer_int_sum (location_t location, enum tree_code resultcode,
offset = offset + tree_low_cst (intop, 0); offset = offset + tree_low_cst (intop, 0);
if (offset < 0 || offset > max) if (offset < 0 || offset > max)
warning_at (location, 0, warning_at (location, 0, "offset %<" HOST_WIDE_INT_PRINT_DEC
"offset %<%ld%> outside bounds of constant string", "%> outside bounds of constant string",
tree_low_cst (intop, 0)); tree_low_cst (intop, 0));
} }
} }
......
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