Fix build bustage due to 'error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]' after bug 1018288 landing in m-c. Part 2. rs=bustage-fix CLOSED TREE

This commit is contained in:
Mark Banner 2014-08-09 09:47:46 +01:00
Родитель 4b72aa6177
Коммит 732cf1be13
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -380,11 +380,11 @@ nsIMdbFile_SlotStrongFile(nsIMdbFile* self, morkEnv* ev, nsIMdbFile** ioSlot)
*ioSlot = 0;
NS_RELEASE(file);
}
if ( self && ev->Good() && (NS_ADDREF(self)>=0) && ev->Good() )
*ioSlot = self;
if (self && ev->Good())
NS_ADDREF(*ioSlot = self);
}
}
void // utility method very similar to morkNode::SlotStrongNode():
nsIMdbHeap_SlotStrongHeap(nsIMdbHeap* self, morkEnv* ev, nsIMdbHeap** ioSlot)
// If *ioSlot is non-nil, that heap is released by CutStrongRef() and