summaryrefslogtreecommitdiff
path: root/tm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tm.c')
-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;
}