Made it compile again.

svn path=/trunk/; revision=6376
This commit is contained in:
Chris Lahey
2000-11-03 21:00:47 +00:00
parent f2b590b943
commit e18070f31c

View File

@ -57,7 +57,7 @@ model_row_inserted(ETableModel *etm, int row, ETableSelectionModel *etsm)
if(etsm->row_count >= 0) {
/* Add another word if needed. */
if ((etsm->row_count & 0x1f) == 0) {
etsm->selection = g_renew(etsm->selection, gint, (etsm->row_count >> 5) + 1);
etsm->selection = g_renew(gint, etsm->selection, (etsm->row_count >> 5) + 1);
etsm->selection[etsm->row_count >> 5] = 0;
}
@ -102,7 +102,7 @@ model_row_deleted(ETableModel *etm, int row, ETableSelectionModel *etsm)
etsm->row_count --;
/* Remove the last word if not needed. */
if ((etsm->row_count & 0x1f) == 0) {
etsm->selection = g_renew(etsm->selection, gint, etsm->row_count >> 5);
etsm->selection = g_renew(gint, etsm->selection, etsm->row_count >> 5);
}
}
}