X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=nucleus%2Flibrary%2Ftests_structures%2Ftest_hash_table.cpp;h=0fc446c2d1e8ff9630ee9ee8da8dc431b561b712;hb=b0ff12c0301f7c7bf4525c669548ae639a003ce0;hp=e4486f60873b2593a5360ee3f518787d330671cb;hpb=25fdd99f599277dff6bcee26bfa27eaeb99665a6;p=feisty_meow.git diff --git a/nucleus/library/tests_structures/test_hash_table.cpp b/nucleus/library/tests_structures/test_hash_table.cpp index e4486f60..0fc446c2 100644 --- a/nucleus/library/tests_structures/test_hash_table.cpp +++ b/nucleus/library/tests_structures/test_hash_table.cpp @@ -95,7 +95,9 @@ public: DEFINE_CLASS_NAME("test_hash_table"); int raw_random_id(); //!< returns an unvetted random number. - int unused_random_id(); //!< returns an unused (so far) random number. + + //! returns an unused (so far) random number. + int unused_random_id(); int execute(); // the main startup for the test. @@ -159,6 +161,7 @@ int test_hash_table::unused_random_id() int checking = raw_random_id(); if (!_keys_in_use.member(checking)) return checking; // got one. } // keep going until we find unused id. + return -1; // this is a failure, but we will never get here. } int test_hash_table::execute()