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:
parent
410b833cf7
commit
5e5d35c199
1 changed files with 2 additions and 1 deletions
|
|
@ -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)\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue