fix typo in int definition

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Joseph Wang 2012-03-25 12:01:46 +00:00
commit a18af913fb

View file

@ -38,9 +38,10 @@
%typemap("rtypecheck") int, int &, long, long &,
unsigned char, unsigned char &
%{ is.integer($arg) || is.numeric($arg) %}
%typemap("rtypecheck") int *, long *, unsigned char *
%{ (is.integer($arg) || is.numeric($arg)) && length($arg) == 1 %}
%typemap("rtypecheck") int *, long *, unsigned char *
%{ is.integer($arg) || is.numeric($arg) %}
%typemap("rtypecheck") double, double &, float, float &
%{ is.numeric($arg) && length($arg) == 1 %}