From 88619a80d8f83fa6f4a4d431a36a74b7ebbf9b7e Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 20 Feb 2007 15:48:32 +0100 Subject: [PATCH] winapi_check: Fix handling of the 'longlong' arguments. --- tools/winapi/winapi_local.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm index f46d1ecd101..9cea5873a56 100644 --- a/tools/winapi/winapi_local.pm +++ b/tools/winapi/winapi_local.pm @@ -187,7 +187,7 @@ sub _check_function($$$$$$) { ("double", "double"); } elsif(defined($kind) && $kind eq "longlong") { $n+=1; - "double"; + "longlong"; } else { $n++; $kind; @@ -230,7 +230,8 @@ sub _check_function($$$$$$) { $output->write("argument " . ($n + 1) . " type is forbidden: " . "$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]) || $options->report_argument_kind($declared_argument_kinds[$n])) {