FigBug/Gin

messagepack truncates integers to bytes

galchinsky opened this issue · 1 comments

These uint8_t casts look like a typo:

https://github.com/FigBug/Gin/blob/master/modules/gin/utilities/gin_messagepack.cpp#L337

    else if (d == 0xcd)
    {
        return int (uint8_t (is.readShortBigEndian()));
    }
    else if (d == 0xce)
    {
        return int (uint8_t (is.readIntBigEndian()));
    }
    else if (d == 0xcf)
    {
        return int (uint8_t (is.readInt64BigEndian()));
    }

Fixed in 5b31da3