Scilab: remove generated code compilation errors & warnings
This commit is contained in:
parent
565dd5661e
commit
5c5528981e
2 changed files with 3 additions and 4 deletions
|
|
@ -68,6 +68,7 @@ namespace swig
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
else throw std::invalid_argument("Cannot get sequence item.");
|
||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
|
|
@ -437,11 +438,8 @@ namespace swig {
|
||||||
}
|
}
|
||||||
return traits_from_sequence<value_type>::set(size, data);
|
return traits_from_sequence<value_type>::set(size, data);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
SWIG_Scilab_AddErrorMsg(e.what());
|
SWIG_Scilab_AddErrorMsg(e.what());
|
||||||
|
|
|
||||||
|
|
@ -117,5 +117,6 @@ SWIG_AsVal_SequenceItem_dec(ptr)(SciObject _obj, int *_piSequence, int _itemInde
|
||||||
SWIGINTERN int
|
SWIGINTERN int
|
||||||
SWIG_From_SequenceItem_dec(ptr)(long long *_pSequence, int _iItemIndex, long long _itemValue) {
|
SWIG_From_SequenceItem_dec(ptr)(long long *_pSequence, int _iItemIndex, long long _itemValue) {
|
||||||
_pSequence[_iItemIndex] = _itemValue;
|
_pSequence[_iItemIndex] = _itemValue;
|
||||||
|
return SWIG_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue