sizeof(size_t) returns 'unsigned int'
sizeof(unsigned long) returns 'unsigned int'
-ovidiu
On Tue, Jan 26, 2016 at 8:44 AM, Camille Oudot <camille.oudot(a)orange.com> wrote:
Le Mon, 25 Jan 2016 22:18:24 -0500,
Ovidiu Sas <osas(a)voipembedded.com> a écrit :
gcc version 4.9.2 (Debian 4.9.2-10)
$ uname -a
Linux t40 3.16.0-4-586 #1 Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17)
i686 GNU/Linux
debian 8.2 on 32bit.
TLSF prototypes use size_t to represent chunk size, while the memory API
expects unsigned long. I thought this would be equivalent (same size
and same signedness). What do sizeof(size_t) and sizeof(unsigned long)
return on this platform?
--
Camille
--
VoIP Embedded, Inc.