use ptrdiff_t instead of std::ptrdiff_t (#2419)

This commit is contained in:
JinmingHu 2021-06-08 11:46:36 +08:00 committed by GitHub
parent 17b91ffe59
commit 9c5872f5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 20 deletions

View File

@ -436,9 +436,8 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_blobContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_blobContent.begin()
+ static_cast<std::ptrdiff_t>(offset.Value() + actualDownloadSize));
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value()),
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value() + actualDownloadSize));
}
else
{
@ -451,8 +450,7 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_blobContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_blobContent.end());
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value()), m_blobContent.end());
}
else
{
@ -509,9 +507,8 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_blobContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_blobContent.begin()
+ static_cast<std::ptrdiff_t>(offset.Value() + actualDownloadSize));
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value()),
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value() + actualDownloadSize));
}
else
{
@ -524,8 +521,7 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_blobContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_blobContent.end());
m_blobContent.begin() + static_cast<ptrdiff_t>(offset.Value()), m_blobContent.end());
}
else
{

View File

@ -418,9 +418,8 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_fileContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_fileContent.begin()
+ static_cast<std::ptrdiff_t>(offset.Value() + actualDownloadSize));
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value()),
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value() + actualDownloadSize));
}
else
{
@ -433,8 +432,7 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_fileContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_fileContent.end());
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value()), m_fileContent.end());
}
else
{
@ -489,9 +487,8 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_fileContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_fileContent.begin()
+ static_cast<std::ptrdiff_t>(offset.Value() + actualDownloadSize));
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value()),
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value() + actualDownloadSize));
}
else
{
@ -504,8 +501,7 @@ namespace Azure { namespace Storage { namespace Test {
if (actualDownloadSize >= 0)
{
expectedData.assign(
m_fileContent.begin() + static_cast<std::ptrdiff_t>(offset.Value()),
m_fileContent.end());
m_fileContent.begin() + static_cast<ptrdiff_t>(offset.Value()), m_fileContent.end());
}
else
{