From 3910807d3957df6a4bc06c30d67dbca12bc671ae Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Fri, 26 Mar 2010 08:26:04 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/cp-tree.h | 2 +- gcc/cp/pt.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ff66a204a8a..25ed7d07f10 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2010-03-26 Dodji Seketeli + + * 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 PR c++/43206 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 564882770ff..2eaee8408b2 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -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); diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 59fdc443ab6..6e622920494 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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