X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/78d8bc6c001cb877d8c7daf3868835815a97ce21..1d533a2f726534cd02f1c7ba71f0fd454f70e16f:/src/btree_data.cpp?ds=sidebyside diff --git a/src/btree_data.cpp b/src/btree_data.cpp index 5e351ce..27825d7 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -9,7 +9,7 @@ BTreeData::BTreeData (uchar *node) clave = new ClaveFija (node); node += clave->Size (); - memcpy (&hijo_izquierdo, node, sizeof (uint)); + memcpy (&hijo, node, sizeof (uint)); } BTreeData::~BTreeData () @@ -28,7 +28,7 @@ uchar* BTreeData::ToArray () { uchar *out = new uchar[Size()]; memcpy (out, clave->ToArray (), clave->Size ()); - memcpy (out+clave->Size (), &hijo_izquierdo, sizeof (uint)); + memcpy (out+clave->Size (), &hijo, sizeof (uint)); return out; }