X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/8699d7e1ccbda4282f8ba693422f337be31d100b..88f6f1c9a8861bed8d1907001a10c4605e268a5e:/src/btree_data.cpp?ds=inline 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)); }