diff options
-rw-r--r-- | src/Write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Write.c b/src/Write.c index ccd824a..7152919 100644 --- a/src/Write.c +++ b/src/Write.c @@ -202,7 +202,7 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) } assert (CCTK_VarTypeSize (gdata.vartype) <= imax); } - total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (gdata.vartype); + total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (htype); assert (total_hsize >= 0); if (total_hsize <= 0) { |