gz_statep is union

This commit is contained in:
Przemyslaw Skibinski
2016-11-29 15:50:28 +01:00
parent 0fa3447dee
commit a1f60632cb
3 changed files with 121 additions and 116 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ int ZEXPORT gzclose(file)
return Z_STREAM_ERROR;
state = (gz_statep)file;
return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
return state.state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
#else
return gzclose_r(file);
#endif