summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2010-10-02 14:27:23 +0000
committerDimitri Sokolyuk <demon@dim13.org>2010-10-02 14:27:23 +0000
commit235030fa4a4270722f1c85f6239e406009d7daf5 (patch)
tree607b69f8024b73b2534c8d217bf9504b29b2951c
parent024e627a6c94a09376302d90632659e1e49cc8dc (diff)
-rw-r--r--tm.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/tm.c b/tm.c
index 00d01de..b45b0ec 100644
--- a/tm.c
+++ b/tm.c
@@ -204,13 +204,9 @@ findtulpe(Table *tab, Cell *cell)
{
Tulpe *t;
- for (t = tab->tulpe; t; t = t->next) {
- if (state != t->curst)
- continue;
- if (cell->symb != t->ssymb)
- continue;
- return t;
- }
+ for (t = tab->tulpe; t; t = t->next)
+ if (state == t->curst && cell->symb == t->ssymb)
+ return t;
return NULL;
}