diff --git a/src/robomongo/core/utils/BsonUtils.cpp b/src/robomongo/core/utils/BsonUtils.cpp index 7de9ae53f..262b1a821 100644 --- a/src/robomongo/core/utils/BsonUtils.cpp +++ b/src/robomongo/core/utils/BsonUtils.cpp @@ -250,7 +250,7 @@ namespace Robomongo break; case BinData: { int len = *(int *)( elem.value() ); - BinDataType type = BinDataType( *(char *)( (int *)( elem.value() ) + 1 ) ); + BinDataType type = BinDataType( *(unsigned char *)( (int *)( elem.value() ) + 1 ) ); if (type == mongo::bdtUUID || type == mongo::newUUID) { s << HexUtils::formatUuid(elem, uuidEncoding);