Fix cast warnings
This commit is contained in:
parent
7c4c456896
commit
0790749917
|
@ -464,7 +464,7 @@ bool doCopy( ProDOS_FileHeader_t *entry, const char *filename )
|
||||||
|
|
||||||
if( !bCopiedName )
|
if( !bCopiedName )
|
||||||
{
|
{
|
||||||
gEntry.len = string_CopyUpper( gEntry.name, pSrcFileName );
|
gEntry.len = (uint8_t) string_CopyUpper( gEntry.name, pSrcFileName );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_MAIN
|
#if DEBUG_MAIN
|
||||||
|
|
|
@ -495,7 +495,7 @@ int prodos_FindFile( ProDOS_VolumeHeader_t *volume, const char *path, int base =
|
||||||
// Get path head
|
// Get path head
|
||||||
int iDirName = nPathLen;
|
int iDirName = nPathLen;
|
||||||
char sDirName[16];
|
char sDirName[16];
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
// Split path
|
// Split path
|
||||||
for( i = 0; i < nPathLen; i++ )
|
for( i = 0; i < nPathLen; i++ )
|
||||||
|
@ -1436,7 +1436,7 @@ void ProDOS_Init( const char *path )
|
||||||
int iOffset;
|
int iOffset;
|
||||||
|
|
||||||
// Init Bitmap
|
// Init Bitmap
|
||||||
gVolume.meta.bitmap_block = PRODOS_ROOT_BLOCK + nRootDirBlocks;
|
gVolume.meta.bitmap_block = (uint16_t) (PRODOS_ROOT_BLOCK + nRootDirBlocks);
|
||||||
int nBitmapBlocks = prodos_BlockInitFree( &gVolume );
|
int nBitmapBlocks = prodos_BlockInitFree( &gVolume );
|
||||||
|
|
||||||
// Set boot blocks as in-use
|
// Set boot blocks as in-use
|
||||||
|
@ -1490,7 +1490,7 @@ void ProDOS_Init( const char *path )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
gVolume.entry_len = 0x27;
|
gVolume.entry_len = 0x27;
|
||||||
gVolume.entry_num = PRODOS_BLOCK_SIZE / gVolume.entry_len;
|
gVolume.entry_num = (uint8_t) (PRODOS_BLOCK_SIZE / gVolume.entry_len);
|
||||||
|
|
||||||
// Note:
|
// Note:
|
||||||
// .file_count = 0, since no files added
|
// .file_count = 0, since no files added
|
||||||
|
@ -1501,7 +1501,7 @@ void ProDOS_Init( const char *path )
|
||||||
size_t nLen = strlen( path );
|
size_t nLen = strlen( path );
|
||||||
|
|
||||||
gVolume.kind = ProDOS_KIND_ROOT;
|
gVolume.kind = ProDOS_KIND_ROOT;
|
||||||
gVolume.len = nLen;
|
gVolume.len = (uint8_t) nLen;
|
||||||
string_CopyUpper( gVolume.name, path, 15 );
|
string_CopyUpper( gVolume.name, path, 15 );
|
||||||
|
|
||||||
gVolume.access = 0
|
gVolume.access = 0
|
||||||
|
|
Loading…
Reference in New Issue