mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[2/N] Fix clang-tidy readability checks (#164652)"
This reverts commit 3c5ca685d6f5b6f3971c0cd20a054aa355610419. Reverted https://github.com/pytorch/pytorch/pull/164652 on behalf of https://github.com/izaitsevfb due to need to revert due to a conflict with revert of https://github.com/pytorch/pytorch/pull/162659 ([comment](https://github.com/pytorch/pytorch/pull/164652#issuecomment-3369346707))
This commit is contained in:
@ -1710,7 +1710,7 @@ int64_t stringFindImpl(
|
||||
bool reverse = false) {
|
||||
int64_t size = string.size();
|
||||
if (start < 0) {
|
||||
start = std::max(int64_t(0), size + start);
|
||||
start = std::max(int64_t(0), int64_t(size + start));
|
||||
}
|
||||
if (end < 0) {
|
||||
end = std::max(int64_t(0), int64_t(size + end + 1));
|
||||
@ -1964,7 +1964,7 @@ static const std::vector<OperatorGeneratorArgs> stringOpGenArgs{
|
||||
return;
|
||||
}
|
||||
if (start < 0) {
|
||||
start = std::max(int64_t(0), size + start);
|
||||
start = std::max(int64_t(0), int64_t(size + start));
|
||||
}
|
||||
if (end < 0) {
|
||||
end = std::max(int64_t(0), int64_t(size + end + 1));
|
||||
@ -1993,7 +1993,7 @@ static const std::vector<OperatorGeneratorArgs> stringOpGenArgs{
|
||||
std::string string = pop(stack).toStringRef();
|
||||
int64_t size = string.size();
|
||||
if (start < 0) {
|
||||
start = std::max(int64_t(0), (size + start));
|
||||
start = std::max(int64_t(0), int64_t(size + start));
|
||||
}
|
||||
if (end < 0) {
|
||||
end = std::max(int64_t(0), int64_t(size + end + 1));
|
||||
@ -2019,7 +2019,7 @@ static const std::vector<OperatorGeneratorArgs> stringOpGenArgs{
|
||||
std::string string = pop(stack).toStringRef();
|
||||
int64_t size = string.size();
|
||||
if (start < 0) {
|
||||
start = std::max(int64_t(0), (size + start));
|
||||
start = std::max(int64_t(0), int64_t(size + start));
|
||||
}
|
||||
if (end < 0) {
|
||||
end = std::max(int64_t(0), int64_t(size + end + 1));
|
||||
|
||||
Reference in New Issue
Block a user