From d1ed2ab72ebb3cc10e45ef2b9ab0ad2ec3705c9f Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 4 Mar 2003 20:09:53 +0000 Subject: [PATCH] Minor patch contributed by Charles Schwieters. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4429 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/common.swg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/common.swg b/Lib/common.swg index c35ecb3a0..7e36a9c4a 100644 --- a/Lib/common.swg +++ b/Lib/common.swg @@ -110,6 +110,7 @@ SWIG_TypeRegister(swig_type_info *ti) head = tc; tc++; } + if (next) next->prev = head; /**/ head->next = next; return ret; } @@ -133,6 +134,7 @@ SWIG_TypeCheck(char *c, swig_type_info *ty) s->next = ty->next; if (ty->next) ty->next->prev = s; ty->next = s; + s->prev = ty; /**/ return s; } s = s->next;