Fixed some bugs/warnings that GCC caught

This commit is contained in:
David Anderson
2006-08-17 16:41:41 +00:00
parent 8b055fd1d0
commit db175082ad
8 changed files with 20 additions and 24 deletions

View File

@@ -184,7 +184,7 @@ LibError RunLibCommand(const LibDecoder *enc)
if ( (enc->cmd == LibCmd_ReqLib) || (enc->cmd == LibCmd_ReqClass) )
{
LibType expect;
LibType expect = LibType_Library;
if (enc->cmd == LibCmd_ReqLib)
expect = LibType_Library;
@@ -202,7 +202,7 @@ LibError RunLibCommand(const LibDecoder *enc)
}
if (expect == LibType_Library)
return LibErr_NoLibrary;
else if (expect = LibType_Class)
else if (expect == LibType_Class)
return LibErr_NoClass;
return LibErr_NoLibrary;