struct stream_pos destp;
align_pos(srcp, float_declaration->p.alignment);
- init_pos(&destp, (char *) u.bits);
+ init_pos(&destp, -1);
+ destp.base = (char *) u.bits;
_ctf_float_copy(&destp, dest_declaration, srcp, float_declaration);
declaration_unref(&dest_declaration->p);
return u.v;
u.v = v;
align_pos(destp, float_declaration->p.alignment);
- init_pos(&srcp, (char *) u.bits);
+ init_pos(&srcp, -1);
+ srcp.base = (char *) u.bits;
_ctf_float_copy(destp, float_declaration, &srcp, src_declaration);
declaration_unref(&src_declaration->p);
}
struct stream_pos destp;
align_pos(srcp, float_declaration->p.alignment);
- init_pos(&destp, (char *) u.bits);
+ init_pos(&destp, -1);
+ destp.base = (char *) u.bits;
_ctf_float_copy(&destp, dest_declaration, srcp, float_declaration);
declaration_unref(&dest_declaration->p);
return u.v;
u.v = v;
align_pos(destp, float_declaration->p.alignment);
- init_pos(&srcp, (char *) u.bits);
+ init_pos(&srcp, -1);
+ srcp.base = (char *) u.bits;
_ctf_float_copy(destp, float_declaration, &srcp, src_declaration);
declaration_unref(&src_declaration->p);
}