Revision 47c4b975 src/sim/cmessageheap.cc
src/sim/cmessageheap.cc | ||
---|---|---|
138 | 138 |
cOwnedObject::operator=(heap); |
139 | 139 |
|
140 | 140 |
// copy heap |
141 |
AO_store(&n, (int)AO_load(&(heap.n))); |
|
141 |
AO_store(&n, (int)AO_load((AO_t*)&(heap.n)));
|
|
142 | 142 |
size = heap.size; |
143 | 143 |
delete [] h; |
144 | 144 |
h = new cMessage *[size+1]; |
... | ... | |
259 | 259 |
|
260 | 260 |
cMessage *cMessageHeap::peekFirst() const |
261 | 261 |
{ |
262 |
return /*cbhead!=cbtail ? cb[cbhead] : */(int)AO_load(&n)!=0 ? h[1] : NULL; |
|
262 |
return /*cbhead!=cbtail ? cb[cbhead] : */(int)AO_load((AO_t*)&n)!=0 ? h[1] : NULL;
|
|
263 | 263 |
} |
264 | 264 |
|
265 | 265 |
cMessage *cMessageHeap::removeFirst() |
Also available in: Unified diff