Re: CVS commit: src/lib/libc/gen

2011-03-13 Thread David Laight
On Sun, Mar 13, 2011 at 07:40:45AM +, matthew green wrote: > src/lib/libc/gen: unvis.c > > Log Message: > cast "~0" to (size_t) when passing to a size_t taking function. > fixes lint build errors. Is that right? My C promotion rules are getting rusty... ~0 is of type 'int', 'size_t' is

Re: CVS commit: src/lib/libc/gen

2011-03-13 Thread Greg Troxel
David Laight writes: > On Sun, Mar 13, 2011 at 07:40:45AM +, matthew green wrote: >> src/lib/libc/gen: unvis.c >> >> Log Message: >> cast "~0" to (size_t) when passing to a size_t taking function. >> fixes lint build errors. > > Is that right? My C promotion rules are getting rusty...