X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/fd68ec89fabf4a95e4ebba38fe54041a9ad6d667..98e331147474997778f92d14b794a94f1dc3bedb:/src/btree_data.cpp diff --git a/src/btree_data.cpp b/src/btree_data.cpp index 70195fd..1adeb83 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -83,6 +83,7 @@ bool BTreeData::DesAbrev (BTreeData *anterior) BTreeLeafData::BTreeLeafData (uchar *node, int key_type) { + hijo = 0; if (key_type == BTree::KEY_FIXED) clave = new ClaveFija (node); else @@ -114,6 +115,7 @@ uchar* BTreeLeafData::ToArray () const BTreeChildData::BTreeChildData (uchar *node) { memcpy (&hijo, node, sizeof (uint)); + clave = NULL; } BTreeChildData::~BTreeChildData () @@ -132,3 +134,7 @@ uchar* BTreeChildData::ToArray () const return out; } +bool BTreeChildData::operator < (const BTreeData &data) const +{ + return false; +}