… | |
… | |
161 | { |
161 | { |
162 | int tsize = sizeof (text_t) * ncol; |
162 | int tsize = sizeof (text_t) * ncol; |
163 | int rsize = sizeof (rend_t) * ncol; |
163 | int rsize = sizeof (rend_t) * ncol; |
164 | |
164 | |
165 | // we assume that rend_t size is a sufficient alignment |
165 | // we assume that rend_t size is a sufficient alignment |
166 | // factor for tetx_t and line_t values, and we only |
166 | // factor for text_t and line_t values, and we only |
167 | // need to adjust tsize. |
167 | // need to adjust tsize. |
168 | tsize = (tsize + sizeof (rend_t) - 1); |
168 | tsize = (tsize + sizeof (rend_t) - 1); |
169 | tsize -= tsize % sizeof (rend_t); |
169 | tsize -= tsize % sizeof (rend_t); |
170 | |
170 | |
171 | int all_rows = total_rows + nrow + nrow; |
171 | int all_rows = total_rows + nrow + nrow; |