summarylogtreecommitdiffstats
path: root/command_pyroscope.cc
diff options
context:
space:
mode:
authorxsmile2018-06-05 22:57:51 +0200
committerxsmile2018-06-05 22:57:51 +0200
commit12fb1dcaeab3366801e5d0a6b52c38555461f871 (patch)
treea18202a220982a52fdcd392eb0094eb9e8acb68c /command_pyroscope.cc
parentd5f9faa36269d5ce2144d93ab4622f3d67e102fb (diff)
downloadaur-12fb1dcaeab3366801e5d0a6b52c38555461f871.tar.gz
fix building on ARM
Diffstat (limited to 'command_pyroscope.cc')
-rw-r--r--command_pyroscope.cc2
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]);
}