aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 17:24:45 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-21 17:24:45 +0000
commit8bdc2159db1dc9eec69652a74fb503c0a1953bc2 (patch)
treea7fec74894398c8f67c22b329318ea49fd2d7c9e
parent416b5d366d79431d07d2dff693f4b70d679ffc42 (diff)
Don't cast lvalues, fixes compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2256 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/tcx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index 1df7d24f98..a1a6b68559 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -88,10 +88,11 @@ static void tcx_draw_line32(TCXState *s1, uint8_t *d,
{
int x;
uint8_t val;
+ uint32_t *p = (uint32_t *)d;
for(x = 0; x < width; x++) {
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;
uint8_t val;
+ uint16_t *p = (uint16_t *)d;
for(x = 0; x < width; x++) {
val = *s++;
- *((uint16_t *)d)++ = s1->palette[val];
+ *p++ = s1->palette[val];
}
}