X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fsystem%2FPoolP.nc;h=9011d6cfd273898c93c904d0fde6c6a4e3fffd1f;hp=14dbec6659d266e7c1b2111664568d69aaae786e;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/system/PoolP.nc b/tos/system/PoolP.nc index 14dbec66..9011d6cf 100644 --- a/tos/system/PoolP.nc +++ b/tos/system/PoolP.nc @@ -105,7 +105,7 @@ implementation { return FAIL; } else { - uint8_t emptyIndex = (index + free); + uint16_t emptyIndex = (index + free); if (emptyIndex >= size) { emptyIndex -= size; }