diff options
Diffstat (limited to 'kpat/freecell-solver/pqueue.h')
-rw-r--r-- | kpat/freecell-solver/pqueue.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kpat/freecell-solver/pqueue.h b/kpat/freecell-solver/pqueue.h index f74068a8..cf5f5372 100644 --- a/kpat/freecell-solver/pqueue.h +++ b/kpat/freecell-solver/pqueue.h @@ -44,12 +44,12 @@ typedef struct _PQUEUE a "sentinel" value at 0 these macros are useful in making the code clearer */ /* the parent is always given by index/2 */ -#define PTQ_PARENT_INDEX(i) ((i)>>1) -#define PTQ_FIRST_ENTRY (1) +#define PQ_PARENT_INDEX(i) ((i)>>1) +#define PQ_FIRST_ENTRY (1) /* left and right children are index * 2 and (index * 2) +1 respectively */ -#define PTQ_LEFT_CHILD_INDEX(i) ((i)<<1) -#define PTQ_RIGHT_CHILD_INDEX(i) (((i)<<1)+1) +#define PQ_LEFT_CHILD_INDEX(i) ((i)<<1) +#define PQ_RIGHT_CHILD_INDEX(i) (((i)<<1)+1) void freecell_solver_PQueueInitialise( PQUEUE *pq, |