From aadf4a572804948ed8f30163a0964a3105297a81 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Fri, 8 Mar 2024 18:10:09 -0500 Subject: [PATCH] alloc --- CMakeLists.txt | 2 +- libs/BLT | 2 +- tests/src/main.cpp | 2 +- tests/src/tests3.cpp | 7 +++---- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1770d85..57eb09f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(lilfbtf5 VERSION 0.1.5) +project(lilfbtf5 VERSION 0.1.6) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/libs/BLT b/libs/BLT index 55bae67..7e7e542 160000 --- a/libs/BLT +++ b/libs/BLT @@ -1 +1 @@ -Subproject commit 55bae674077139b78eeeb6c94361662ec2b2a8be +Subproject commit 7e7e542f51f75dbca6eb86f01abf8c5a2164f706 diff --git a/tests/src/main.cpp b/tests/src/main.cpp index 9049759..ad701da 100644 --- a/tests/src/main.cpp +++ b/tests/src/main.cpp @@ -47,7 +47,7 @@ int main(int argc, const char** argv) if (args.contains("--tests")) { - fb::test2(); + //fb::test2(); fb::test3(); BLT_PRINT_PROFILE("Tree Construction"); diff --git a/tests/src/tests3.cpp b/tests/src/tests3.cpp index 0473e22..28ec03f 100644 --- a/tests/src/tests3.cpp +++ b/tests/src/tests3.cpp @@ -255,9 +255,8 @@ namespace fb { base_t* type = nullptr; node_t** children = nullptr; - type_t type_value; - explicit node_t(type_t type): type(create_node_type(type)), type_value(type) + explicit node_t(type_t type): type(create_node_type(type)) { if (this->type == nullptr) throw std::bad_alloc(); @@ -400,7 +399,7 @@ namespace fb void run2() { - constexpr auto size = 512; + constexpr auto size = 1; constexpr auto tree_size = 17; engine.reset(); tree3 love[size]; @@ -435,7 +434,7 @@ namespace fb delete[] cum; - run(); + //run(); run2(); // using testing = blt::size_t;