]> granicus.if.org Git - libvpx/commit
halloc: Cast the offsetof macro to ptrdiff_t before negating
authorMartin Storsjo <martin@martin.st>
Sun, 19 May 2013 09:54:23 +0000 (12:54 +0300)
committerMartin Storsjo <martin@martin.st>
Fri, 7 Jun 2013 07:18:59 +0000 (10:18 +0300)
commitbf8c6207786bc64716186cb2ca8955344dde6307
treea3dbe0cbaab6e940244cc88cc803b9c33b447d4c
parentec34afd1b0bc5ffe4679fd18e9d8982643a3380e
halloc: Cast the offsetof macro to ptrdiff_t before negating

This gets rid of the warning
"C4146: unary minus applied to unsigned type, result still unsigned"
with visual c++.

Change-Id: I6eb24da983136d798221db4d3a5f50dc2857a03b
nestegg/halloc/src/macros.h