Fix compilation.

* cp-tree.h (get_template_parms_at_level): Change unsigned parm
	into int.
	* pt.c (get_template_parms_at_level): Adjust.

From-SVN: r157743
This commit is contained in:
Dodji Seketeli 2010-03-26 08:26:04 +00:00 committed by Dodji Seketeli
parent 46bc665fe4
commit 3910807d39
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2010-03-26 Dodji Seketeli <dodji@redhat.com>
* cp-tree.h (get_template_parms_at_level): Change unsigned parm
into int.
* pt.c (get_template_parms_at_level): Adjust.
2010-03-25 Dodji Seketeli <dodji@redhat.com>
PR c++/43206

View File

@ -4973,7 +4973,7 @@ extern void init_template_processing (void);
bool template_template_parameter_p (const_tree);
extern bool primary_template_instantiation_p (const_tree);
extern tree get_primary_template_innermost_parameters (const_tree);
extern tree get_template_parms_at_level (tree, unsigned);
extern tree get_template_parms_at_level (tree, int);
extern tree get_template_innermost_arguments (const_tree);
extern tree get_template_argument_pack_elems (const_tree);
extern tree get_function_template_decl (const_tree);

View File

@ -2843,7 +2843,7 @@ get_primary_template_innermost_parameters (const_tree t)
of template parameters PARMS. */
tree
get_template_parms_at_level (tree parms, unsigned level)
get_template_parms_at_level (tree parms, int level)
{
tree p;
if (!parms