summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-12-10 20:43:28 -0500
committerPietro Gagliardi <[email protected]>2014-12-10 20:43:28 -0500
commit3788cb730c2929f68f3b4bed17faef5e09c930c3 (patch)
treefc5a4992b7214ebe1d74f04d88b3ee93706182c6
parenta7cbacb522ffcce08f18569336ca9c3323c8d341 (diff)
Added a cast to a tableRealloc() call.
-rw-r--r--wintable/new/api.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wintable/new/api.h b/wintable/new/api.h
index 535a940..4167d98 100644
--- a/wintable/new/api.h
+++ b/wintable/new/api.h
@@ -3,7 +3,7 @@
static void addColumn(struct table *t, WPARAM wParam, LPARAM lParam)
{
t->nColumns++;
- t->columnTypes = tableRealloc(t->columnTypes, t->nColumns * sizeof (int), "adding the new column type to the current Table's list of column types");
+ t->columnTypes = (int *) tableRealloc(t->columnTypes, t->nColumns * sizeof (int), "adding the new column type to the current Table's list of column types");
t->columnTypes[t->nColumns - 1] = (int) wParam;
// TODO make a panicNoErrCode() or panicArg() for this
if (t->columnTypes[t->nColumns - 1] >= nTableColumnTypes)