Fix some other code

This commit is contained in:
Mike Nolan 2023-05-11 06:39:34 -05:00
parent c5bc5bc9ce
commit ff2140ddd8
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ tobject_t* __fs_readalltext_external_method(runtime_t* rt,void* ptr,list_tobject
if(f)
{
string_t* str = string_create();
string_read(str,f,fread);
string_read(str,f,(size_t (*)(void*,size_t,size_t,void*))fread);
free(fileName);
fclose(f);
return tobject_string(rt,str);

View File

@ -37,7 +37,7 @@ int main(int argc,char** argv)
FILE* f = fopen(argv[1],"r");
if(f != NULL){
string_read(cmd,f,fread);
string_read(cmd,f,(size_t (*)(void*,size_t,size_t,void*))fread);
fclose(f);
}