X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/8699d7e1ccbda4282f8ba693422f337be31d100b..6eca7410b5a4c3c5225d852dd1d1ce9b74a7f4cd:/src/btree_data.cpp diff --git a/src/btree_data.cpp b/src/btree_data.cpp index 46917d6..1203d6c 100644 --- a/src/btree_data.cpp +++ b/src/btree_data.cpp @@ -43,6 +43,8 @@ uchar* BTreeData::ToArray () const bool BTreeData::operator < (const BTreeData &data) const { + if (!data.clave) return false; + return (*clave) < (*(data.clave)); }