Skip to content

Commit

Permalink
compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
outman-zhou committed Dec 11, 2019
1 parent 204755c commit d223413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mars/log/src/appender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ const char* xlogger_memory_dump(const void* _dumpbuffer, size_t _len) {

int dst_offset = round_bytes;
int dst_upper = kMaxBufferLength - 1;
for(int src_offset = 0; src_offset < _len && dst_offset < dst_upper;){
for(int src_offset = 0; src_offset < (int)_len && dst_offset < dst_upper;){
int dst_leftbytes = dst_upper - dst_offset;
int bytes = std::min((int)_len - src_offset, 32);

Expand Down

0 comments on commit d223413

Please sign in to comment.