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:
committed by
waddlesplash
parent
ea9bcf517a
commit
3ac18ca766
@@ -22,7 +22,7 @@
|
|||||||
static status_t
|
static status_t
|
||||||
GetI2CSignals_Alt(void* cookie, int* _clock, int* data)
|
GetI2CSignals_Alt(void* cookie, int* _clock, int* data)
|
||||||
{
|
{
|
||||||
uint32 index = (uint32)cookie;
|
uint32 index = (uint32)(addr_t)cookie;
|
||||||
uint8 value = ReadCrtcReg(index);
|
uint8 value = ReadCrtcReg(index);
|
||||||
|
|
||||||
*_clock = (value & 0x4) != 0;
|
*_clock = (value & 0x4) != 0;
|
||||||
@@ -34,7 +34,7 @@ GetI2CSignals_Alt(void* cookie, int* _clock, int* data)
|
|||||||
static status_t
|
static status_t
|
||||||
SetI2CSignals_Alt(void* cookie, int _clock, int data)
|
SetI2CSignals_Alt(void* cookie, int _clock, int data)
|
||||||
{
|
{
|
||||||
uint32 index = (uint32)cookie;
|
uint32 index = (uint32)(addr_t)cookie;
|
||||||
uint8 value = 0x10;
|
uint8 value = 0x10;
|
||||||
|
|
||||||
if (_clock)
|
if (_clock)
|
||||||
|
|||||||
Reference in New Issue
Block a user