s3: Fix 64bit portability cast

Signed-off-by: Jaroslaw Pelczar <[email protected]>
Change-Id: I14486e5f1cc73c856f9db7373a398a567df0607c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1781
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jaroslaw Pelczar
2019-08-30 14:15:09 +00:00
committed by waddlesplash
parent ea9bcf517a
commit 3ac18ca766
+2 -2
View File
@@ -22,7 +22,7 @@
static status_t
GetI2CSignals_Alt(void* cookie, int* _clock, int* data)
{
uint32 index = (uint32)cookie;
uint32 index = (uint32)(addr_t)cookie;
uint8 value = ReadCrtcReg(index);
*_clock = (value & 0x4) != 0;
@@ -34,7 +34,7 @@ GetI2CSignals_Alt(void* cookie, int* _clock, int* data)
static status_t
SetI2CSignals_Alt(void* cookie, int _clock, int data)
{
uint32 index = (uint32)cookie;
uint32 index = (uint32)(addr_t)cookie;
uint8 value = 0x10;
if (_clock)