summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-05-25 01:40:26 -0400
committerAlon Levy <alevy@redhat.com>2013-05-25 01:40:26 -0400
commitbf58efb141b9e58500de18e519d2a3e5fa58a15b (patch)
treea5e359c6009c370ca974e39610d2f468ca05c2fa
parent32d5cfda75ef3bd9dce942643555b08824c3a637 (diff)
xddm/display/driver.c: fix cast from pointer to integer of different size warning
-rw-r--r--xddm/display/driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xddm/display/driver.c b/xddm/display/driver.c
index 6ff7892..9345e78 100644
--- a/xddm/display/driver.c
+++ b/xddm/display/driver.c
@@ -711,8 +711,8 @@ static BOOLEAN CreateVRamSlot(PDev *pdev)
pdev->mem_slots[slot_id].slot.generation = *pdev->slots_generation;
pdev->mem_slots[slot_id].slot.start_phys_addr = pdev->fb_phys;
pdev->mem_slots[slot_id].slot.end_phys_addr = pdev->fb_phys + pdev->fb_size;
- pdev->mem_slots[slot_id].slot.start_virt_addr = (UINT64)pdev->fb;
- pdev->mem_slots[slot_id].slot.end_virt_addr = (UINT64)pdev->fb + pdev->fb_size;
+ pdev->mem_slots[slot_id].slot.start_virt_addr = (UINT64)(intptr_t)pdev->fb;
+ pdev->mem_slots[slot_id].slot.end_virt_addr = (UINT64)(intptr_t)pdev->fb + pdev->fb_size;
high_bits = slot_id << pdev->slot_gen_bits;
high_bits |= pdev->mem_slots[slot_id].slot.generation;