Commit c3280486 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cast void* to double*

parent 5422d1b7
...@@ -391,7 +391,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss) ...@@ -391,7 +391,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss)
case FILETYPE_SRV: case FILETYPE_SRV:
{ {
if ( memtype == MEMTYPE_FLOAT ) Error("srvWriteRecord not implemented for memtype float!"); if ( memtype == MEMTYPE_FLOAT ) Error("srvWriteRecord not implemented for memtype float!");
status = srvWriteRecord(streamptr, data); status = srvWriteRecord(streamptr, (const double*) data);
break; break;
} }
#endif #endif
...@@ -399,7 +399,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss) ...@@ -399,7 +399,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss)
case FILETYPE_EXT: case FILETYPE_EXT:
{ {
if ( memtype == MEMTYPE_FLOAT ) Error("extWriteRecord not implemented for memtype float!"); if ( memtype == MEMTYPE_FLOAT ) Error("extWriteRecord not implemented for memtype float!");
status = extWriteRecord(streamptr, data); status = extWriteRecord(streamptr, (const double*) data);
break; break;
} }
#endif #endif
...@@ -407,7 +407,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss) ...@@ -407,7 +407,7 @@ void stream_write_record(int streamID, int memtype, const void *data, int nmiss)
case FILETYPE_IEG: case FILETYPE_IEG:
{ {
if ( memtype == MEMTYPE_FLOAT ) Error("iegWriteRecord not implemented for memtype float!"); if ( memtype == MEMTYPE_FLOAT ) Error("iegWriteRecord not implemented for memtype float!");
status = iegWriteRecord(streamptr, data); status = iegWriteRecord(streamptr, (const double*) data);
break; break;
} }
#endif #endif
......
Markdown is supported
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