提交 9faa2a7f 编写于 作者: M MYLS

solve warning for IOS

Two test are still needed:

1. Verify the Base64 data.
2. Read an old YML file for compatibility test.
上级 958263d2
......@@ -298,7 +298,6 @@ namespace base64
bool flush();
private:
static const size_t BUFFER_LEN = 120U;
uchar * dst_beg;
uchar * dst_cur;
uchar * dst_end;
std::vector<uchar> base64_buffer;
......@@ -6329,8 +6328,7 @@ bool base64::read_base64_header(std::string const & header, int & byte_size, std
***************************************************************************/
base64::Base64ContextParser::Base64ContextParser(uchar * buffer, size_t size)
: dst_beg(buffer)
, dst_cur(buffer)
: dst_cur(buffer)
, dst_end(buffer + size)
, base64_buffer(BUFFER_LEN)
, src_beg(0)
......@@ -6840,7 +6838,7 @@ private:
{
size_t cnt = 0;
char type = '\0';
int offset = 0;
size_t offset = 0;
std::istringstream iss(dt);
while (!iss.eof()) {
......@@ -6888,7 +6886,7 @@ private:
offset = static_cast<size_t>(cvAlign(static_cast<int>(offset), static_cast<int>(size)));
pack.offset = offset;
offset += static_cast<int>(size);
offset += size;
/* set type */
switch (type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册