diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-12-07 11:43:38 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-12-07 11:43:38 -0800 |
commit | fc75f3ed87b55d625b6054e18645da5cbdba31c6 (patch) | |
tree | 5e4f2844634b8ddf532f03c1328f2c7601c48e3c /vm/compiler/Utility.c | |
parent | 70624ec99772ce2c6222d066bb7f03a764c45128 (diff) | |
download | android_dalvik-fc75f3ed87b55d625b6054e18645da5cbdba31c6.tar.gz android_dalvik-fc75f3ed87b55d625b6054e18645da5cbdba31c6.tar.bz2 android_dalvik-fc75f3ed87b55d625b6054e18645da5cbdba31c6.zip |
Fix implicit conversions, rename reserved works, enable -Wc++-compat.
Change-Id: I06292964a6882ea2d0c17c5c962db95e46b01543
Diffstat (limited to 'vm/compiler/Utility.c')
-rw-r--r-- | vm/compiler/Utility.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/compiler/Utility.c b/vm/compiler/Utility.c index daeb8937c..4b942ef40 100644 --- a/vm/compiler/Utility.c +++ b/vm/compiler/Utility.c @@ -117,7 +117,7 @@ static void expandGrowableList(GrowableList *gList) void *newArray = dvmCompilerNew(sizeof(void *) * newLength, true); memcpy(newArray, gList->elemList, sizeof(void *) * gList->numAllocated); gList->numAllocated = newLength; - gList->elemList = newArray; + gList->elemList = (void **)newArray; } /* Insert a new element into the growable list */ @@ -280,7 +280,7 @@ bool dvmCompilerSetBit(BitVector *pBits, int num) /* Round up to word boundaries for "num+1" bits */ int newSize = (num + 1 + 31) >> 5; assert(newSize > pBits->storageSize); - u4 *newStorage = dvmCompilerNew(newSize * sizeof(u4), false); + u4 *newStorage = (u4*)dvmCompilerNew(newSize * sizeof(u4), false); memcpy(newStorage, pBits->storage, pBits->storageSize * sizeof(u4)); memset(&newStorage[pBits->storageSize], 0, (newSize - pBits->storageSize) * sizeof(u4)); |