aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallen <allen@10716dce-81a3-4424-a2c8-48026a0d3035>2000-11-27 12:02:14 +0000
committerallen <allen@10716dce-81a3-4424-a2c8-48026a0d3035>2000-11-27 12:02:14 +0000
commit845b1a8c57aaf14ea20c0cd6974c65ed80bccc6d (patch)
treec4cc6d9911a3ac25db05a4dfc702bf9ce77c05c6
parent9a243ecf1fe51ea3b486eb352bd534c727998f0a (diff)
Fix for now for compilation on origin
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@42 10716dce-81a3-4424-a2c8-48026a0d3035
-rw-r--r--src/NewHyperslab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/NewHyperslab.c b/src/NewHyperslab.c
index 1922c41..7e86a21 100644
--- a/src/NewHyperslab.c
+++ b/src/NewHyperslab.c
@@ -441,7 +441,8 @@ int NewHyperslab_GetLocalHyperslab (cGH *GH, int vindex, int vtimelvl,
hdata_size = CCTK_VarTypeSize (htype);
/* allocate the buffer for the hyperslab data */
- typed_hdata = (char *) *hdata = malloc (totals * hdata_size);
+ *hdata = malloc (totals * hdata_size);
+ typed_hdata = (char *) (*hdata);
/* get the number of hyperslab points in lowest dimension,
their size in bytes,