Fix the warnings and some errors.

This commit is contained in:
sorgelig
2018-12-29 21:15:25 +08:00
parent 3aa5c4d438
commit ddd5b75d2b
19 changed files with 136 additions and 156 deletions

View File

@@ -832,7 +832,7 @@ bool TDiskImage::FindSector(unsigned char CYL, unsigned char SIDE,
unsigned int TrackOffset = FromOffset;
bool FirstFind = true;
unsigned int FirstPos;
unsigned int FirstPos = 0;
// Ïîèñê àäðåñíîé ìåòêè òðåáóåìîãî ñåêòîðà...
bool ADFOUND = false;
@@ -2829,7 +2829,7 @@ int GetByte(void) /* get one byte */
while (getlen <= 8)
{
if ((i = readChar()) == -1) i = 0;
if ((int)(i = readChar()) == -1) i = 0;
getbuf |= i << (8 - getlen);
getlen += 8;
}