Partial fix of [ 675353 ] rubyhead.swg: missing cast at NUM2USHRT.

Lyle, can you take a look at this:

http://sourceforge.net/tracker/index.php?func=detail&aid=675353&group_id=1645&atid=101645


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-02-07 22:10:14 +00:00
commit 5e5d35c199

View file

@ -4,7 +4,8 @@
#include "ruby.h"
#define NUM2USHRT(n) NUM2UINT(n)
#define NUM2USHRT(n) (unsigned short) NUM2UINT(n)
#define NUM2SHRT(n) (\
(SHRT_MIN <= NUM2INT(n) && NUM2INT(n) <= SHRT_MAX)\
? (short)NUM2INT(n)\