winapi_check: Fix handling of the 'longlong' arguments.

This commit is contained in:
Francois Gouget 2007-02-20 15:48:32 +01:00 committed by Alexandre Julliard
parent f032dcbda2
commit 88619a80d8
1 changed files with 3 additions and 2 deletions

View File

@ -187,7 +187,7 @@ sub _check_function($$$$$$) {
("double", "double"); ("double", "double");
} elsif(defined($kind) && $kind eq "longlong") { } elsif(defined($kind) && $kind eq "longlong") {
$n+=1; $n+=1;
"double"; "longlong";
} else { } else {
$n++; $n++;
$kind; $kind;
@ -230,7 +230,8 @@ sub _check_function($$$$$$) {
$output->write("argument " . ($n + 1) . " type is forbidden: " . $output->write("argument " . ($n + 1) . " type is forbidden: " .
"$argument_types[$n] ($argument_kinds[$n])\n"); "$argument_types[$n] ($argument_kinds[$n])\n");
} }
} elsif($argument_kinds[$n] ne $declared_argument_kinds[$n]) { } elsif($argument_kinds[$n] ne $declared_argument_kinds[$n] &&
!($argument_kinds[$n] eq "longlong" && $declared_argument_kinds[$n] eq "double")) {
if($options->report_argument_kind($argument_kinds[$n]) || if($options->report_argument_kind($argument_kinds[$n]) ||
$options->report_argument_kind($declared_argument_kinds[$n])) $options->report_argument_kind($declared_argument_kinds[$n]))
{ {