Skip to content
Snippets Groups Projects
Commit b2c64472 authored by Paweł Dziepak's avatar Paweł Dziepak Committed by Pekka Enberg
Browse files

tests: fix unsigned/signed comparison in misc-free-perf.cc


thread_allocator::next_core is compared against sched::cpus.size().
GCC 4.9 doesn't like the fact that the former is signed and the latter
is unsigned.

Reviewed-by: default avatarTomasz Grabiec <tgrabiec@gmail.com>
Signed-off-by: default avatarPaweł Dziepak <pdziepak@quarnos.org>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent fd3034ec
No related branches found
Tags v0.09
No related merge requests found
......@@ -28,7 +28,7 @@ class thread_allocator
{
private:
std::vector<sched::thread*> threads;
int next_core {};
unsigned next_core {};
public:
template<typename Func>
void add(Func func)
......@@ -145,4 +145,4 @@ int main(int argc, char const *argv[])
{
test_across_core_alloc_and_free(std::bind(malloc, 1024), free);
return 0;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment