From 03e4f890799d7926464ab81e8bf583eef9c808c3 Mon Sep 17 00:00:00 2001 From: Christian Kern Date: Thu, 9 Oct 2014 09:53:26 +0200 Subject: [PATCH] Fix warning in MSVC2012/Debug --- containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h b/containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h index 7cbb74b..05d2a99 100644 --- a/containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h +++ b/containers_cpp/include/embb/containers/internal/hazard_pointer-inl.h @@ -271,7 +271,7 @@ Scan(HazardPointerThreadEntry_t* currentHazardPointerEntry) { // a bug... this assertions checks that int expected = -1; if (!currentHazardPointerEntry->GetScanningThread().CompareAndSwap( - expected, GetCurrentThreadIndex())) + expected, static_cast(GetCurrentThreadIndex()))) { assert(false); } -- libgit2 0.26.0