Fix ancient bad merge from trunk
This commit is contained in:
parent
0ebe64c041
commit
daab0d748c
1 changed files with 2 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ const char * testJames(Name *james) {
|
|||
%{
|
||||
/*%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;
|
||||
|
|
@ -142,7 +142,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