mirror of
https://github.com/cc65/cc65.git
synced 2025-02-18 15:30:30 +00:00
Added explicit cast to uint8_t, to make the Cisual Studio compiler happy.
This commit is contained in:
parent
9978600d28
commit
61bedbdd55
@ -137,7 +137,7 @@ uint8_t PeripheralsReadByte (uint8_t Addr)
|
||||
default: Value = 0; /* Reading from a non-existent latch register will yield 0. */
|
||||
}
|
||||
/* Return the desired byte of the latched counter. 0==LSB, 7==MSB. */
|
||||
return Value >> (ByteIndex * 8);
|
||||
return (uint8_t)(Value >> (ByteIndex * 8));
|
||||
}
|
||||
|
||||
/* Handle reads from unused peripheral and write-only addresses. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user