diff --git a/crypto777/OS_portable.h b/crypto777/OS_portable.h index d92b66ca4..0c2e17139 100755 --- a/crypto777/OS_portable.h +++ b/crypto777/OS_portable.h @@ -198,8 +198,8 @@ int32_t OS_openmap(struct OS_mappedptr *mp); void *OS_mappedptr(void **ptrp,struct OS_mappedptr *mp,uint64_t allocsize,int32_t rwflag,char *fname); void *OS_filealloc(struct OS_mappedptr *M,char *fname,struct OS_memspace *mem,long size); void *OS_mapfile(char *fname,long *filesizep,int32_t enablewrite); -void *OS_loadfile(char *fname,char **bufp,int64_t *lenp,int64_t *allocsizep); -void *OS_filestr(int64_t *allocsizep,char *fname); +void *OS_loadfile(char *fname,char **bufp,long *lenp,long *allocsizep); +void *OS_filestr(long *allocsizep,char *fname); int32_t OS_syncmap(struct OS_mappedptr *mp,long len); void *OS_tmpalloc(char *dirname,char *name,struct OS_memspace *mem,long origsize); diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index 03d524ce9..88ceda0b7 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -769,10 +769,10 @@ void *OS_filealloc(struct OS_mappedptr *M,char *fname,struct OS_memspace *mem,lo return(M->fileptr); } -void *OS_loadfile(char *fname,char **bufp,int64_t *lenp,int64_t *allocsizep) +void *OS_loadfile(char *fname,char **bufp,long *lenp,long *allocsizep) { FILE *fp; - int64_t filesize,buflen = *allocsizep; + long filesize,buflen = *allocsizep; char *buf = *bufp; *lenp = 0; if ( (fp= fopen(OS_compatible_path(fname),"rb")) != 0 ) @@ -805,9 +805,9 @@ void *OS_loadfile(char *fname,char **bufp,int64_t *lenp,int64_t *allocsizep) return(buf); } -void *OS_filestr(int64_t *allocsizep,char *fname) +void *OS_filestr(long *allocsizep,char *fname) { - int64_t filesize = 0; char *buf = 0; + long filesize = 0; char *buf = 0; *allocsizep = 0; return(OS_loadfile(fname,&buf,&filesize,allocsizep)); } diff --git a/iguana/field.html b/iguana/field.html new file mode 100644 index 000000000..74dceff1c --- /dev/null +++ b/iguana/field.html @@ -0,0 +1,4 @@ +