Compile warnings in base64.cpp

Description

conversion from 'size_t' to 'unsigned char', possible loss of dataat line 97 char_array_4[i] = base64_chars.find(char_array_4[i]);

And conversion from 'size_t' to 'unsigned char', possible loss of data at line 114 char_array_4[j] = base64_chars.find(char_array_4[j]);

Activity

Show:
Paul Meems
July 12, 2019, 12:04 PM

The encode/decode function seems to come from https://stackoverflow.com/questions/180947/base64-decode-snippet-in-c/180949#180949

In the comments is a version without the use of findand possible faster and more efficient.

I don’t know if we can just replace the code.
Could you have a look if replacing the code is a good idea?

Assignee

Unassigned

Reporter

Paul Meems

Labels

None

Epic Link

Affects versions

None

Fix versions

Priority

Medium