Fixed bug [948521]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2e74736b7f
commit
c25bb79fdb
1 changed files with 3 additions and 5 deletions
|
|
@ -176,8 +176,7 @@ namespace std {
|
||||||
%typecheck(SWIG_TYPECHECK_VECTOR) vector<T> {
|
%typecheck(SWIG_TYPECHECK_VECTOR) vector<T> {
|
||||||
Tcl_Obj **listobjv;
|
Tcl_Obj **listobjv;
|
||||||
int nitems;
|
int nitems;
|
||||||
int i;
|
T* temp;
|
||||||
T* temp;
|
|
||||||
std::vector<T> *v;
|
std::vector<T> *v;
|
||||||
|
|
||||||
if(SWIG_ConvertPtr($input, (void **) &v, \
|
if(SWIG_ConvertPtr($input, (void **) &v, \
|
||||||
|
|
@ -193,7 +192,7 @@ namespace std {
|
||||||
if (nitems == 0)
|
if (nitems == 0)
|
||||||
$1 = 1;
|
$1 = 1;
|
||||||
//check the first value to see if it is of correct type
|
//check the first value to see if it is of correct type
|
||||||
else if ((SWIG_ConvertPtr(listobjv[i],
|
else if ((SWIG_ConvertPtr(listobjv[0],
|
||||||
(void **) &temp,
|
(void **) &temp,
|
||||||
$descriptor(T *),0)) != 0)
|
$descriptor(T *),0)) != 0)
|
||||||
$1 = 0;
|
$1 = 0;
|
||||||
|
|
@ -206,7 +205,6 @@ namespace std {
|
||||||
const vector<T>* {
|
const vector<T>* {
|
||||||
Tcl_Obj **listobjv;
|
Tcl_Obj **listobjv;
|
||||||
int nitems;
|
int nitems;
|
||||||
int i;
|
|
||||||
T* temp;
|
T* temp;
|
||||||
std::vector<T> *v;
|
std::vector<T> *v;
|
||||||
|
|
||||||
|
|
@ -223,7 +221,7 @@ namespace std {
|
||||||
if (nitems == 0)
|
if (nitems == 0)
|
||||||
$1 = 1;
|
$1 = 1;
|
||||||
//check the first value to see if it is of correct type
|
//check the first value to see if it is of correct type
|
||||||
else if ((SWIG_ConvertPtr(listobjv[i],
|
else if ((SWIG_ConvertPtr(listobjv[0],
|
||||||
(void **) &temp,
|
(void **) &temp,
|
||||||
$descriptor(T *),0)) != 0)
|
$descriptor(T *),0)) != 0)
|
||||||
$1 = 0;
|
$1 = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue