warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b75c606205
commit
d2fe155495
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ const char * testMary(Name *mary) {
|
|||
%{
|
||||
/*%typemap(in) (Name *multiname, int num) start */
|
||||
temp_name = $*1_ltype("multiname num");
|
||||
temp_count = strlen(temp_name.getNamePtr()->getName());
|
||||
temp_count = (int)strlen(temp_name.getNamePtr()->getName());
|
||||
(void)$input;
|
||||
$1 = temp_name.getNamePtr();
|
||||
$2 = temp_count + 100;
|
||||
|
|
@ -103,7 +103,7 @@ $typemap(in, (Name *multiname, int num))
|
|||
|
||||
%inline %{
|
||||
const char * testJim(Name *jim, int count) {
|
||||
if (count != strlen(jim->getNamePtr()->getName()) + 100)
|
||||
if (count != (int)strlen(jim->getNamePtr()->getName()) + 100)
|
||||
return "size check failed";
|
||||
else
|
||||
return jim->getName();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue