Fixed minor bug.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
98544303e6
commit
feb67fb7db
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ If you have used typedef to change type-names, you can also do this :
|
||||||
double NONPOSITIVE,
|
double NONPOSITIVE,
|
||||||
Number NONPOSITIVE
|
Number NONPOSITIVE
|
||||||
{
|
{
|
||||||
if ($target < 0) {
|
if ($target > 0) {
|
||||||
SWIG_exception(SWIG_ValueError,"Expected a non-positive value.");
|
SWIG_exception(SWIG_ValueError,"Expected a non-positive value.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue