Re: const improperly cast away

2011-05-18 Thread Stefan Fuhrmann
On 18.05.2011 12:42, Daniel Shahaf wrote: [[[ svn_fs_fs__dag_deserialize(const char *data) { dag_node_t *node = (dag_node_t *)data; svn_fs_fs__id_deserialize(node, (svn_fs_id_t **)&node->fresh_root_predecessor_id); } ]]] Here, the 'fresh_root_predecessor_id' me

const improperly cast away

2011-05-18 Thread Daniel Shahaf
[[[ svn_fs_fs__dag_deserialize(const char *data) { dag_node_t *node = (dag_node_t *)data; svn_fs_fs__id_deserialize(node, (svn_fs_id_t **)&node->fresh_root_predecessor_id); } ]]] Here, the 'fresh_root_predecessor_id' member of '*node' is somewhere within *data, and