1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

Another workaround related to tcc

This commit is contained in:
Witold Filipczyk 2006-05-05 22:18:27 +02:00 committed by Witold Filipczyk
parent c283f8cfd9
commit e56f429c9b

View File

@ -689,9 +689,15 @@ check_table_height(struct table *table, struct table_frames *frames, int y)
* and has non-zero cellspacing or vcellpadding. --pasky */
for (row = 0; row < table->rows; row++) {
#ifdef __TINYC__
our_height += table->rows_heights[row];
if (row < table->rows - 1 && has_hline_width(table, row + 1))
our_height++;
#else
our_height += table->rows_heights[row] +
(row < table->rows - 1 &&
has_hline_width(table, row + 1));
#endif
}
assertm(old_height == our_height, "size not matching! %d vs %d",