Question about memory/allocation/pointers
I have a program that looks something like this:
It uses a temporary pointer to allocate memory, and if successful makes Data the pointer to this memory.
unsigned char* Data;
unsigned char* TempData;
TempData=new unsigned char;
I get a suspicious pointer conversation warning when compiling. Is there something wrong with this code? It seems to work fine when running the program.