M
magnus.ahman
I malloc() memory and use the pointer in indexing - ptr[index] - where
index is a size_t, but I get this warning from lint: unsigned long
converted to long. Obviuosly size_t is unsigned long on my system, but
what is the signed long - ptr_diff or what?
I've read on the web that size_t is safe to index any array. So is
this
warning from lint just bullsh-t or should I be worried that my code
will
break when it uses a lot of memory?
index is a size_t, but I get this warning from lint: unsigned long
converted to long. Obviuosly size_t is unsigned long on my system, but
what is the signed long - ptr_diff or what?
I've read on the web that size_t is safe to index any array. So is
this
warning from lint just bullsh-t or should I be worried that my code
will
break when it uses a lot of memory?