Author: mturk Date: Wed Apr 22 12:30:23 2009 New Revision: 767486 URL: http://svn.apache.org/viewvc?rev=767486&view=rev Log: Fix size_t warnings
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c?rev=767486&r1=767485&r2=767486&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/dbb.c Wed Apr 22 12:30:23 2009 @@ -121,12 +121,12 @@ } for (i = 0; i < len; i++) { /* calculate overall size using the default alignment */ - sz += ACR_ALIGN_DEFAULT(ia[i + off]); + sz += ACR_ALIGN_DEFAULT((size_t)ia[i + off]); } if ((mem = malloc(sz)) != NULL) { size_t offset = 0; for (i = 0; i < len; i++) { - size_t n = ACR_ALIGN_DEFAULT(ia[i + off]); + size_t n = ACR_ALIGN_DEFAULT((size_t)ia[i + off]); jobject bb = (*_E)->NewDirectByteBuffer(_E, (char *)mem + offset, ia[i + off]); if (bb == NULL) { @@ -202,12 +202,12 @@ } for (i = 0; i < len; i++) { /* calculate overall size using the default alignment */ - sz += ACR_ALIGN_DEFAULT(ia[i + off]); + sz += ACR_ALIGN_DEFAULT((size_t)ia[i + off]); } if ((mem = calloc(1, sz)) != NULL) { size_t offset = 0; for (i = 0; i < len; i++) { - size_t n = ACR_ALIGN_DEFAULT(ia[i + off]); + size_t n = ACR_ALIGN_DEFAULT((size_t)ia[i + off]); jobject bb = (*_E)->NewDirectByteBuffer(_E, (char *)mem + offset, ia[i + off]); if (bb == NULL) {