Commit b9fbf28b authored by John van Groningen's avatar John van Groningen
Browse files

refactor ufileIO2.c to prevent c compiler warnings on 32 bit linux, add some...

refactor ufileIO2.c to prevent c compiler warnings on 32 bit linux, add some casts from (long*) to (int*)
parent a74f791a
......@@ -556,7 +556,11 @@ int file_read_int (long fn,long *i_p)
case 0:
IO_error ("FReadI: can't read from StdErr");
case 1:
#ifdef A64
return w_get_int (i_p);
#else
return w_get_int ((int*)i_p);
#endif
default:
IO_error ("FReadI: can't open this file");
}
......@@ -593,7 +597,7 @@ int file_read_int (long fn,long *i_p)
#ifdef A64
if (fscanf (f->file,"%ld",i_p)!=1)
#else
if (fscanf (f->file,"%d",i_p)!=1)
if (fscanf (f->file,"%d",(int*)i_p)!=1)
#endif
return 0;
} else
......@@ -1366,7 +1370,7 @@ int file_read_s_int (long fn,long *i_p,unsigned long *position_p)
#ifdef A64
if (fscanf (f->file,"%ld",i_p)!=1)
#else
if (fscanf (f->file,"%d",i_p)!=1)
if (fscanf (f->file,"%d",(int*)i_p)!=1)
#endif
result=0;
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment