mirror of
https://github.com/golang/go
synced 2024-11-19 15:44:44 -07:00
syscall: fix bug in mksyscall_windows.pl
This change fixes generation of "shadow" variables for bool parameters. Before the change, it was naming all bool variables with the same name of _p0. Now it calls them _p0, _p1, ... So the code could compile. R=golang-dev, r CC=golang-dev https://golang.org/cl/4479047
This commit is contained in:
parent
92834d351e
commit
b191155ab4
@ -156,6 +156,7 @@ while(<>) {
|
||||
$text .= "\tvar _p$n uint32\n";
|
||||
$text .= "\tif $name {\n\t\t_p$n = 1\n\t} else {\n\t\t_p$n = 0\n\t}\n";
|
||||
push @args, "uintptr(_p$n)";
|
||||
$n++;
|
||||
} else {
|
||||
push @args, "uintptr($name)";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user