mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
more mutability fixes
This commit is contained in:
@ -30,7 +30,7 @@ pub fn (wg mut WaitGroup) done() {
|
||||
wg.add(-1)
|
||||
}
|
||||
|
||||
pub fn (wg mut WaitGroup) wait() {
|
||||
pub fn (wg &WaitGroup) wait() {
|
||||
for wg.active > 0 {
|
||||
// Do not remove this, busy empty loops are optimized
|
||||
// with -prod by some compilers, see issue #2874
|
||||
|
Reference in New Issue
Block a user