diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2011-03-15 20:59:04 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2011-03-15 20:59:04 +0000 |
commit | 89face5db11657c0f867d0d33fe069b9529911c5 (patch) | |
tree | 24ec366c1f387c2d617b16cfbcd4c31defe0690b /Lib/typemaps | |
parent | 5f1c242f1a093643a08ad3eb3fa4a2f686d80cf8 (diff) | |
download | swig-89face5db11657c0f867d0d33fe069b9529911c5.tar.gz |
Fix overloading when using const char[] and char[ANY] and const char[ANY]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/typemaps')
-rw-r--r-- | Lib/typemaps/strings.swg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/typemaps/strings.swg b/Lib/typemaps/strings.swg index 0769fe221..d982a17a2 100644 --- a/Lib/typemaps/strings.swg +++ b/Lib/typemaps/strings.swg @@ -206,7 +206,7 @@ /* typecheck */ %typemap(typecheck,noblock=1,precedence=StringCode, - fragment=#SWIG_AsCharPtr) Char *, Char const*& { + fragment=#SWIG_AsCharPtr) Char *, const Char *, Char const*& { int res = SWIG_AsCharPtr($input, 0, 0); $1 = SWIG_CheckState(res); } @@ -351,7 +351,7 @@ %typemap(typecheck,noblock=1,precedence=StringCode, fragment=#SWIG_AsCharArray) Char [ANY], const Char[ANY] { - int res = SWIG_AsCharArray($input, (Char *)0, 0); + int res = SWIG_AsCharArray($input, (Char *)0, $1_dim0); $1 = SWIG_CheckState(res); } |