fix 64 bit warning
authormlacage@nef.inria.fr
Tue, 03 Oct 2006 12:18:53 +0200
changeset 119 07ec9baf54a7
parent 118 472ff5fe2eef
child 120 0747c110cc88
fix 64 bit warning
src/simulator/scheduler-heap.cc
--- a/src/simulator/scheduler-heap.cc	Tue Oct 03 10:48:23 2006 +0200
+++ b/src/simulator/scheduler-heap.cc	Tue Oct 03 12:18:53 2006 +0200
@@ -66,12 +66,14 @@
 void
 SchedulerHeap::storeInEvent (EventImpl *ev, uint32_t index) const
 {
-    ev->setInternalIterator ((void *)index);
+    long tmp = index;
+    ev->setInternalIterator ((void *)tmp);
 }
 uint32_t
 SchedulerHeap::getFrom_event (EventImpl *ev) const
 {
-       return (uint32_t)ev->getInternalIterator ();
+    long tmp = (long)ev->getInternalIterator ();
+    return (uint32_t)tmp;
 }
 uint32_t 
 SchedulerHeap::parent (uint32_t id) const