So I have this bit of code that is giving me trouble:
int i = sqlite3_column_count(select_statement);
int pk = sqlite3_column_int(select_statement, i-1);
[pkList addObject🙁int *)pk];
And I get:
warning: passing argument 1 of 'addObject:' from incompatible pointer type
on the last line.
I reviewed memory management and pointers for a good while now (been reading up on various sites for hours), so what am I overlooking?
int i = sqlite3_column_count(select_statement);
int pk = sqlite3_column_int(select_statement, i-1);
[pkList addObject🙁int *)pk];
And I get:
warning: passing argument 1 of 'addObject:' from incompatible pointer type
on the last line.
I reviewed memory management and pointers for a good while now (been reading up on various sites for hours), so what am I overlooking?