From 9697a955e4358a26402d510dd711301782da0ce8 Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Fri, 2 May 2008 17:34:20 +0000
Subject: [PATCH] fix void** return type setting

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

diff --git a/cint/cint7/src/ifunc.cxx b/cint/cint7/src/ifunc.cxx
index 99f836337bc..48c765eddba 100644
--- a/cint/cint7/src/ifunc.cxx
+++ b/cint/cint7/src/ifunc.cxx
@@ -663,18 +663,16 @@ void Cint::Internal::G__make_ifunctable(char* funcheader)
       }
    }
    else {
+      if (numstar && (islower(G__var_type))) {
+         G__var_type = toupper(G__var_type);
+         --numstar;
+      }
       if (numstar) {
-         if (islower(G__var_type)) {
-            G__var_type = toupper(G__var_type);
-         }
-         else {
-            if (G__reftype == G__PARANORMAL) {
-                  G__reftype = G__PARAP2P;
-            }
-            else {
-                  G__reftype += 1;
-            }
+         if (G__reftype == G__PARANORMAL) {
+            G__reftype = G__PARAP2P;
+            --numstar;
          }
+         G__reftype += numstar;
       }
       if (G__tagnum && !G__tagnum.IsNamespace()) {
          // -- The return type is either a class, enum, struct, or union.
-- 
GitLab