On Thu, Oct 23, 2014 at 10:24:57AM +0200, ☎ wrote:
Good catch, I didn't notice it. Maybe we should just use size_t for all the length functions in libosmo*? That's what size_t was invented for after all :)
it looks like a candidate for ping-pong games on 32bit/64bit userland on GNU/Linux. What is the type here? unsigned int - size_t?
I can't quote the ISO C specification. So what type is the result of "unsigned int - size_t"? We have size_t, off_t, ptrdiff_t as potential types. I don't know which is the right one. :)