Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Size can be negative. Use ssize_t instead of size_t.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 14 Nov 2012 08:41:59 +0000 (09:41 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 14 Nov 2012 08:44:40 +0000 (09:44 +0100)
commitdafc6fe52dceb4ab063b177d74c60bebd47c8e54
treeb4db4e7b72e826cc2a31f48530c0711301e23b9e
parent0d2c98345e65093248d2ae20dc713065c9c0f53c
Size can be negative.  Use ssize_t instead of size_t.

Error caught by Clang:
In file included from /home/giersch/lsrc/simgrid/simgrid-git/src/xbt/mmalloc/mm.c:21:
src/xbt/mmalloc/mmorecore.c:74:19: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
  } else if (size < 0) {
src/xbt/mmalloc/mmorecore.c
src/xbt/mmalloc/mmprivate.h