diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2023-01-03 23:53:34 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2023-01-03 23:53:34 +0000 |
commit | b18b75369cd4b2795abad1283629b13a62630b58 (patch) | |
tree | d34da10c118526e099bd79df3a0da7bfcc6917df /Source | |
parent | 2fc0edc4fd9da1c25254127128aaa601cad30916 (diff) | |
download | swig-b18b75369cd4b2795abad1283629b13a62630b58.tar.gz |
Fix seg fault using %template
Fix seg fault when instantiating templates with parameters that are function
parameters containing templates, such as:
%template(MyC) C<int(std::vector<int>)>;
Closes #983
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Swig/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Swig/symbol.c b/Source/Swig/symbol.c index 107b1caef..7c7c4d100 100644 --- a/Source/Swig/symbol.c +++ b/Source/Swig/symbol.c @@ -1746,7 +1746,7 @@ SwigType *Swig_symbol_typedef_reduce(const SwigType *ty, Symtab *tab) { n = Swig_symbol_clookup(base, tab); if (!n) { - if (SwigType_istemplate(ty)) { + if (SwigType_istemplate(base)) { SwigType *qt = Swig_symbol_template_reduce(base, tab); Append(prefix, qt); Delete(qt); |