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 6b8e89e098
commit c711133b45

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;