Commit 88619a80 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

winapi_check: Fix handling of the 'longlong' arguments.

parent f032dcbd
...@@ -187,7 +187,7 @@ sub _check_function($$$$$$) { ...@@ -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($$$$$$) { ...@@ -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]))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment