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; } };