diff options
Diffstat (limited to 'command_pyroscope.cc')
-rw-r--r-- | command_pyroscope.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/command_pyroscope.cc b/command_pyroscope.cc index 98e854329701..be4d09b8060b 100644 --- a/command_pyroscope.cc +++ b/command_pyroscope.cc @@ -665,7 +665,7 @@ torrent::Object cmd_string_substr(rpc::target_type target, const torrent::Object } offsets[idx] = bytes; - int64_t begidx = std::max(idx + glyphs, 0L); + int64_t begidx = std::max(idx + glyphs, (int64_t) 0); int64_t endidx = std::min(idx, begidx + count); return text.substr(offsets[begidx], offsets[endidx] - offsets[begidx]); } |