Commit 85bf7bdb authored by Christian Würdig's avatar Christian Würdig
Browse files

key is int again

[r13433]
parent 775c65ba
......@@ -20,8 +20,8 @@
*/
typedef struct _pqueue_el_t {
void *data;
double key;
void *data;
int key;
} pqueue_el_t;
struct _pqueue_t {
......@@ -98,7 +98,7 @@ void del_pqueue(pqueue *q) {
* @param data The actual data which should be stored in the queue.
* @param key The priority for the data.
*/
void pqueue_put(pqueue *q, void *data, double key) {
void pqueue_put(pqueue *q, void *data, int key) {
pqueue_el_t el;
el.data = data;
......
......@@ -30,7 +30,7 @@ void del_pqueue(pqueue *q);
* @param data The actual data which should be stored in the queue.
* @param key The priority for the data.
*/
void pqueue_put(pqueue *q, void *data, double key);
void pqueue_put(pqueue *q, void *data, int key);
/**
* Returns and removes the first element, ie. that one with the highest priority, from the queue.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment