From 08cd16084b664153d9ce3136c99a9c00b1e09114 Mon Sep 17 00:00:00 2001
From: Axel Naumann <Axel.Naumann@cern.ch>
Date: Wed, 11 Aug 2010 09:02:45 +0000
Subject: [PATCH] Fix reference unsetting in argument conversion. Fixes
 map<unsigned long long, unsigned long> dummyData; unsigned int i = 0;
 dummyData[i] = 5;

git-svn-id: http://root.cern.ch/svn/root/trunk@34762 27541ba8-7e3a-0410-8455-c3a389f83636
---
 cint/cint/src/ifunc.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cint/cint/src/ifunc.cxx b/cint/cint/src/ifunc.cxx
index c2bd72f65dc..30f8d57c00c 100644
--- a/cint/cint/src/ifunc.cxx
+++ b/cint/cint/src/ifunc.cxx
@@ -4019,8 +4019,8 @@ int G__convert_param(G__param* libp, G__ifunc_table_internal* p_ifunc, int ifn,
             break;
          case 'n': /* long long */
             if (G__PARAREFERENCE == formal_reftype) {
-               param->type = formal_type;
                if (param->type != formal_type) param->ref = 0;
+               param->type = formal_type;
                switch (param_type) {
                   case 'd':
                   case 'f':
@@ -4048,8 +4048,8 @@ int G__convert_param(G__param* libp, G__ifunc_table_internal* p_ifunc, int ifn,
             break;
          case 'm': /* unsigned long long */
             if (G__PARAREFERENCE == formal_reftype) {
-               param->type = formal_type;
                if (param->type != formal_type) param->ref = 0;
+               param->type = formal_type;
                switch (param_type) {
                   case 'd':
                   case 'f':
@@ -4077,8 +4077,8 @@ int G__convert_param(G__param* libp, G__ifunc_table_internal* p_ifunc, int ifn,
             break;
          case 'q': /* long double */
             if (G__PARAREFERENCE == formal_reftype) {
-               param->type = formal_type;
                if (param->type != formal_type) param->ref = 0;
+               param->type = formal_type;
                switch (param_type) {
                   case 'd':
                   case 'f':
-- 
GitLab