1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C.original 2012-02-09 16:22:56.420371795 +0000
+++ Utilities/VisItBridge/databases/BOV/avtBOVFileFormat.C 2012-02-09 16:25:59.652228526 +0000
@@ -703,10 +703,10 @@
{
// Read past the specified offset.
if(byteOffset > 0)
- gzseek(gz_handle, byteOffset, SEEK_SET);
+ gzseek((gzFile)gz_handle, byteOffset, SEEK_SET);
// Read the whole dataset
- gzread(gz_handle, whole_buff, whole_nelem * unit_size);
+ gzread((gzFile)gz_handle, whole_buff, whole_nelem * unit_size);
}
else
{
@@ -1046,9 +1046,9 @@
{
// Read past the specified offset.
if(byteOffset > 0)
- gzseek(gz_handle, byteOffset, SEEK_SET);
+ gzseek((gzFile)gz_handle, byteOffset, SEEK_SET);
- gzread(gz_handle, rv->GetVoidPointer(0),
+ gzread((gzFile)gz_handle, rv->GetVoidPointer(0),
nvals * dataNumComponents * unit_size);
}
else
@@ -1192,7 +1192,7 @@
// Close the file descriptors.
//
if (gzipped)
- gzclose(gz_handle);
+ gzclose((gzFile)gz_handle);
else
fclose(file_handle);
|