Skip to content

Commit cfc10be

Browse files
authored
[lld] Fix warning in SymbolTable.cpp (#112323)
Fix gcc warning: lld/ELF/SymbolTable.cpp:340:33: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
1 parent 7937fe1 commit cfc10be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/SymbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void SymbolTable::scanVersionScript() {
337337
globalAsteriskFound = !isLocal;
338338
}
339339
}
340-
assignWildcard(pat, isLocal ? VER_NDX_LOCAL : ver->id, ver->name);
340+
assignWildcard(pat, isLocal ? (uint16_t)VER_NDX_LOCAL : ver->id, ver->name);
341341
};
342342
for (VersionDefinition &v : llvm::reverse(ctx.arg.versionDefinitions)) {
343343
for (SymbolVersion &pat : v.nonLocalPatterns)

0 commit comments

Comments
 (0)