mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Cleanup: Avoid signed/unsigned comparisons.
The ones ones left are for DMD-defined constants.
This commit is contained in:
@@ -324,7 +324,7 @@ std::vector<llvm::Type*> IrTypeClass::buildVtblType(Type* first, Array* vtbl_arr
|
||||
{
|
||||
Logger::println("Running late semantic3 to infer return type.");
|
||||
TemplateInstance *spec = fd->isSpeculative();
|
||||
int olderrs = global.errors;
|
||||
unsigned int olderrs = global.errors;
|
||||
fd->semantic3(fd->scope);
|
||||
if (spec && global.errors != olderrs)
|
||||
spec->errors = global.errors - olderrs;
|
||||
@@ -360,7 +360,7 @@ size_t IrTypeClass::getInterfaceIndex(ClassDeclaration * inter)
|
||||
{
|
||||
ClassIndexMap::iterator it = interfaceMap.find(inter);
|
||||
if (it == interfaceMap.end())
|
||||
return ~0;
|
||||
return ~0UL;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user