diff --git a/tools/winapi/winapi.pm b/tools/winapi/winapi.pm index 5bf4ce6b45e..8c552e5b41e 100644 --- a/tools/winapi/winapi.pm +++ b/tools/winapi/winapi.pm @@ -192,7 +192,7 @@ sub parse_api_file($$) { } } elsif(defined($kind)) { my $type = $_; - if ($type =~ /^long\b/) + if ($type =~ /\blong\b/) { $output->write("$file:$linenum: type ($type) is not Win64 compatible\n"); }