Bug 978700: Fix warnings about comparison of values with different signs, r=roc

This commit is contained in:
Thomas Zimmermann 2014-03-04 09:45:51 +01:00
parent be59808edd
commit 194df565ae
3 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ status_t GonkBufferQueue::setTransformHint(uint32_t hint) {
return NO_ERROR;
}
int GonkBufferQueue::getGeneration() {
uint32_t GonkBufferQueue::getGeneration() {
return mGeneration;
}

View File

@ -387,7 +387,7 @@ public:
// NATIVE_WINDOW_TRANSFORM_ROT_90. The default is 0 (no transform).
status_t setTransformHint(uint32_t hint);
int getGeneration();
uint32_t getGeneration();
SurfaceDescriptor *getSurfaceDescriptorFromBuffer(ANativeWindowBuffer* buffer);

View File

@ -317,7 +317,7 @@ KeyEventDispatcher::KeyEventDispatcher(const UserInputData& aData,
{
// XXX Printable key's keyCode value should be computed with actual
// input character.
mDOMKeyCode = (mData.key.keyCode < ArrayLength(kKeyMapping)) ?
mDOMKeyCode = (mData.key.keyCode < (ssize_t)ArrayLength(kKeyMapping)) ?
kKeyMapping[mData.key.keyCode] : 0;
mDOMKeyNameIndex = GetKeyNameIndex(mData.key.keyCode);