Revision 47c4b975 include/cmessageheap.h

View differences:

include/cmessageheap.h
198 198
    /**
199 199
     * Returns the number of messages in the heap.
200 200
     */
201
    int getLength() const {return /*cblength() +*/ (int)AO_load(&n);}
201
    int getLength() const {return /*cblength() +*/ (int)AO_load((AO_t*)&n);}
202 202

  
203 203
    /**
204 204
     * Returns true if the heap is empty.
205 205
     */
206
    bool isEmpty() const {return /*cbhead==cbtail &&*/ AO_load(&n)==0;}
206
    bool isEmpty() const {return /*cbhead==cbtail &&*/ AO_load((AO_t*)&n)==0;}
207 207

  
208 208
    /**
209 209
     * Alias for getLength().

Also available in: Unified diff