arm64 : fix intptr_t size

This commit is contained in:
hymei
2022-06-05 01:12:32 +03:00
committed by nillerusr
parent 2690e6c85a
commit 4e4039d756
143 changed files with 1015 additions and 674 deletions
+7 -7
View File
@@ -24,29 +24,29 @@
class StdIOReadBinary : public IFileReadBinary
{
public:
int open( const char *pFileName )
intp open( const char *pFileName )
{
return (int)fopen( pFileName, "rb" );
return (intp)fopen( pFileName, "rb" );
}
int read( void *pOutput, int size, int file )
int read( void *pOutput, int size, intp file )
{
FILE *fp = (FILE *)file;
return fread( pOutput, size, 1, fp );
}
void seek( int file, int pos )
void seek( intp file, int pos )
{
fseek( (FILE *)file, pos, SEEK_SET );
}
unsigned int tell( int file )
unsigned int tell( intp file )
{
return ftell( (FILE *)file );
}
unsigned int size( int file )
unsigned int size( intp file )
{
FILE *fp = (FILE *)file;
if ( !fp )
@@ -60,7 +60,7 @@ public:
return size;
}
void close( int file )
void close( intp file )
{
FILE *fp = (FILE *)file;