From b4f266c4e43c457f4d8b52d898cbb3f3066d40fa Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 31 Jul 2015 16:13:06 +0200 Subject: [PATCH] qwindowstheme.cpp: Fix compiler warnings by MSVC2015 (64bit). qwindowstheme.cpp(635): warning C4312: 'reinterpret_cast': conversion from 'int' to 'FakePointer *' of greater size Change-Id: Ia2b7c14a5f31bd29243302e76105ad97563951b2 Reviewed-by: Gabriel de Dietrich --- src/plugins/platforms/windows/qwindowstheme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowstheme.cpp b/src/plugins/platforms/windows/qwindowstheme.cpp index a541fd4629..33c7ccfdce 100644 --- a/src/plugins/platforms/windows/qwindowstheme.cpp +++ b/src/plugins/platforms/windows/qwindowstheme.cpp @@ -633,7 +633,7 @@ public: static FakePointer *create(T thing) { - return reinterpret_cast(thing); + return reinterpret_cast(qintptr(thing)); } T operator * () const