view src/llrb/compare.c @ 466:831b7f6fd687

Fix warning pointer type
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Thu, 21 Dec 2017 18:52:21 +0900
parents dc6f665bb753
children
line wrap: on
line source

#include "llrbContext.h"

void compare(struct Context* context, struct Tree* tree, int key1, int key2) {
    if (key1 == key2) {
        tree->result = EQ;
    } else if (key1 < key2) {
        tree->result = GT;
    } else {
        tree->result = LT;
    }
}