aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-01-05 11:53:58 +0100
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-01-05 11:53:58 +0100
commit972a81c1592eb3cc0f54b394612256a54fa26411 (patch)
tree9ec57130a1905aad227c78bbf6ab9f8b2224fbc2
parent663fe641bae1c5349e62fd8d964960fdebb97f9c (diff)
downloadzero-of-one-master.zip
zero-of-one-master.tar.bz2
Found an issue.HEADmaster
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/tool/sorted_list.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1021162..9791143 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project("Zero of One")
@@ -21,3 +21,6 @@ set_property(TARGET zero_of_one PROPERTY C_STANDARD 99)
set_property(TARGET zero_of_one PROPERTY C_STANDARD_REQUIRED ON)
#find_package(Threads)
#target_link_libraries(cborg ${CMAKE_THREAD_LIBS_INIT})
+
+## OPTION HANDLING #############################################################
+# TODO
diff --git a/src/tool/sorted_list.c b/src/tool/sorted_list.c
index 880a4b5..5252c9e 100644
--- a/src/tool/sorted_list.c
+++ b/src/tool/sorted_list.c
@@ -33,6 +33,7 @@ int ZoO_sorted_list_index_of
for (;;)
{
/* FIXME: overflow-safe? */
+ /* No: (and (> current_min (/ Max 2)) (> current_max (/ Max 2))) */
i = ((current_min + current_max) / 2);
if (i == list_length)