From fd7a5a8dd5d6f5d50ccbc381286d31a9687c9909 Mon Sep 17 00:00:00 2001 From: Sanuj Date: Sun, 24 Jul 2016 18:50:36 +0530 Subject: [PATCH] fix bug in any --- src/shogun/lib/any.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shogun/lib/any.h b/src/shogun/lib/any.h index e005896c3c7..607a622e59d 100644 --- a/src/shogun/lib/any.h +++ b/src/shogun/lib/any.h @@ -144,8 +144,8 @@ namespace shogun */ bool equals(void** storage, void** other_storage) const { - int typed_storage = *(reinterpret_cast(*storage)); - int typed_other_storage = *(reinterpret_cast(*other_storage)); + T typed_storage = *(reinterpret_cast(*storage)); + T typed_other_storage = *(reinterpret_cast(*other_storage)); return typed_storage == typed_other_storage; } };