Skip to content

Commit

Permalink
Use int for endch to fix portability issues regarding signed/unsigned…
Browse files Browse the repository at this point in the history
… char (#75)
  • Loading branch information
Trevor Morris authored Jan 24, 2020
1 parent ea78f1d commit 98b8ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class Base64OutStream: public dmlc::Stream {
* \brief finish writing of all current base64 stream, do some post processing
* \param endch character to put to end of stream, if it is EOF, then nothing will be appended.
*/
void Finish(char endch = EOF) {
void Finish(int endch = EOF) {
using base64::EncodeTable;
if (buf__top_ == 1) {
PutChar(EncodeTable[buf_[1] >> 2]);
Expand Down

0 comments on commit 98b8ca4

Please sign in to comment.