platform-implement-win.cpp: Fix invalid pointer cast in 64 bits systems 66/242166/1
authorWander Lairson Costa <wander.lairson@gmail.com>
Wed, 22 Jul 2020 12:59:32 +0000 (09:59 -0300)
committerVíctor Cebollada <v.cebollada@samsung.com>
Mon, 24 Aug 2020 15:04:33 +0000 (15:04 +0000)
commitaf2c1bbddeeea09350f373a45338bba021d645ac
treee8b0643e97ef29d0e9678e5fe6b727246ebd93e5
parent1f9b132d9942deb7cb53561d65c982378194f971
platform-implement-win.cpp: Fix invalid pointer cast in 64 bits systems

The ID returned by the function SetTimer is actually a pointer to a data
structure storing the timer information. Originally the return type of
the function was int, which is 32 bits, but in Windows 64 bits it is not
enough to store a pointer value.

We convert the timer ID type to the proper type intptr_t, which is an
integral type guaranteed to be big enough to hold a pointer value.

Change-Id: I207b8e2538d73d583ed6df1192af0fbbdb6bed96
dali/internal/system/windows/timer-impl-win.cpp
dali/internal/window-system/windows/platform-implement-win.cpp
dali/internal/window-system/windows/platform-implement-win.h