Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 321218af authored by Lajos Molnar's avatar Lajos Molnar
Browse files

stagefright: fix casting error in AMessage::findAsInt64

Change-Id: I7d9452e55611565cc4208d1835872a0de6f5a351
parent d0722779
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -246,10 +246,10 @@ bool AMessage::findAsInt64(const char *name, int64_t *value) const {
        const Item *item = &mItems[i];
        switch (item->mType) {
            case kTypeInt64:
                *value = (float)item->u.int64Value;
                *value = item->u.int64Value;
                return true;
            case kTypeInt32:
                *value = (float)item->u.int32Value;
                *value = item->u.int32Value;
                return true;
            default:
                return false;