Mercurial > hg > Members > Moririn
view src/llrb/compare.c @ 408:8ee89eefbc6d
Fix twice
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 06 Sep 2017 21:54:22 +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; } }