Sfoglia il codice sorgente

Fixed to properly catch multiply defined symbols.

tags/v0.9.3
Michael Brown 20 anni fa
parent
commit
d94cb57143
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/util/symcheck.pl

+ 1
- 1
src/util/symcheck.pl Vedi File

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

Loading…
Annulla
Salva