qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5725] Fix warnings caused by timer_t, it is 32 bits on Spa


From: Blue Swirl
Subject: [Qemu-devel] [5725] Fix warnings caused by timer_t, it is 32 bits on Sparc64
Date: Sun, 16 Nov 2008 11:37:18 +0000

Revision: 5725
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5725
Author:   blueswir1
Date:     2008-11-16 11:37:18 +0000 (Sun, 16 Nov 2008)

Log Message:
-----------
Fix warnings caused by timer_t, it is 32 bits on Sparc64

Modified Paths:
--------------
    trunk/vl.c

Modified: trunk/vl.c
===================================================================
--- trunk/vl.c  2008-11-16 11:34:07 UTC (rev 5724)
+++ trunk/vl.c  2008-11-16 11:37:18 UTC (rev 5725)
@@ -1527,21 +1527,21 @@
         return -1;
     }
 
-    t->priv = (void *)host_timer;
+    t->priv = (void *)(long)host_timer;
 
     return 0;
 }
 
 static void dynticks_stop_timer(struct qemu_alarm_timer *t)
 {
-    timer_t host_timer = (timer_t)t->priv;
+    timer_t host_timer = (timer_t)(long)t->priv;
 
     timer_delete(host_timer);
 }
 
 static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
 {
-    timer_t host_timer = (timer_t)t->priv;
+    timer_t host_timer = (timer_t)(long)t->priv;
     struct itimerspec timeout;
     int64_t nearest_delta_us = INT64_MAX;
     int64_t current_us;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]