瀏覽代碼

Fixed to properly catch multiply defined symbols.

tags/v0.9.3
Michael Brown 19 年之前
父節點
當前提交
d94cb57143
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/util/symcheck.pl

+ 1
- 1
src/util/symcheck.pl 查看文件

@@ -39,7 +39,7 @@ while ( ( my $symbol, my $info ) = each %$symbols ) {
39 39
     $problems->{$_}->{nonexistent}->{$symbol} = 1 foreach @requires;
40 40
   } elsif ( @provides > 1 ) {
41 41
     # Symbol defined in multiple objects
42
-    $problems->{$_}->{multiples}->{$symbol} = 1 foreach @requires;
42
+    $problems->{$_}->{multiples}->{$symbol} = 1 foreach @provides;
43 43
   }
44 44
   if ( @requires == 0 ) {
45 45
     # Symbol not required

Loading…
取消
儲存