numat / RASPA2

NO LONGER UPDATED. Use the official repository.
https://github.com/iraspa/RASPA2
Other
73 stars 72 forks source link

Don't cast `malloc` / `calloc` #11

Open patrickfuller opened 9 years ago

patrickfuller commented 9 years ago

Highly cited stack overflow here.

The code uses a pattern like

Framework[system].ExclusionMatrix[f1]=(char**)calloc(largest_size,sizeof(char*));

Stop this unless absolutely necessary.