Warning removal in runtime code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ff1bedc094
commit
e480bac0b3
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg);
|
|||
#else
|
||||
void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg) {
|
||||
SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpException].callback;
|
||||
if (code >=0 && code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpExceptionCodes)) {
|
||||
if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpExceptionCodes)) {
|
||||
callback = SWIG_csharp_exceptions[code].callback;
|
||||
}
|
||||
callback(msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue