On Mon, 21 Feb 2005 08:52:05 -0500 Shae Tan <[EMAIL PROTECTED]> wrote:
> inputLengthArray = calloc(inputArraySize, sizeof(int));
> 24: warning: assignment makes pointer from integer without a cast
calloc() expects the first argument to be of type size_t (which is basically an
int anyway). You are passing an int pointer, so you need to make an explicit
cast. The following code should do.
inputLengthArray = calloc((size_t) inputArraySize, sizeof(int));
Since a lot of primitive types in C are implicitly ints anyway (or compatible)
(like FILE), you have to be careful to be explicit with what you want.
--
Paolo Vanni M. Ve�egas
Ateneo Campus Network Group (AteneoCNG)
4 BSCS, Ateneo de Manila University
http://cng.ateneo.net/cng/pvenegas
--
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie