mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 12:07:25 +00:00
Don't cast lvalues, fixes compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2256 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
416b5d366d
commit
8bdc2159db
6
hw/tcx.c
6
hw/tcx.c
@ -88,10 +88,11 @@ static void tcx_draw_line32(TCXState *s1, uint8_t *d,
|
|||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
uint8_t val;
|
uint8_t val;
|
||||||
|
uint32_t *p = (uint32_t *)d;
|
||||||
|
|
||||||
for(x = 0; x < width; x++) {
|
for(x = 0; x < width; x++) {
|
||||||
val = *s++;
|
val = *s++;
|
||||||
*((uint32_t *)d)++ = s1->palette[val];
|
*p++ = s1->palette[val];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,10 +101,11 @@ static void tcx_draw_line16(TCXState *s1, uint8_t *d,
|
|||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
uint8_t val;
|
uint8_t val;
|
||||||
|
uint16_t *p = (uint16_t *)d;
|
||||||
|
|
||||||
for(x = 0; x < width; x++) {
|
for(x = 0; x < width; x++) {
|
||||||
val = *s++;
|
val = *s++;
|
||||||
*((uint16_t *)d)++ = s1->palette[val];
|
*p++ = s1->palette[val];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user