Fix code on platforms for which sizeof(double)!=sizeof(double*).

This commit is contained in:
Bård Skaflestad
2012-02-06 12:52:41 +01:00
parent da16edf8bc
commit 2de58be3fd

View File

@@ -373,7 +373,7 @@ wells_add(enum well_type type ,
W->depth_ref[nw] = depth_ref;
if (zfrac != NULL) {
memcpy(W->zfrac + 3*nw, zfrac, 3 * sizeof W->zfrac);
memcpy(W->zfrac + 3*nw, zfrac, 3 * sizeof *W->zfrac);
}
W->well_connpos[nw + 1] = off + nperf;